本文介绍了字符串池是在PermGen区域或Heap的Object区域中创建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,作者说的是

有什么具体原因可以解决吗?我无法在网上找到任何内容。有什么影响?

Is there any specific reason why is it done ? I am not able to find any online. And what are the implications ?

推荐答案

由于PermGen真的难以调整,因此转向Metaspace是必要的。

The move to Metaspace was necessary since the PermGen was really hard to tune.

此外,很难确定PermGen的大小,因为它的大小取决于很多因素,例如类的总数,常量池的大小,方法的大小等。

Also, it was difficult to size the PermGen since the size depended on a lot of factors such as the total number of classes, the size of the constant pools, size of methods, etc.

此外,HotSpot中的每个垃圾收集器都需要专门的代码来处理PermGen中的元数据。从PermGen中分离元数据不仅可以实现Metaspace的无缝管理,还可以进行改进,例如简化完整垃圾收集以及将来同时取消分配类元数据。

Additionally, each garbage collector in HotSpot needed specialized code for dealing with metadata in the PermGen. Detaching metadata from PermGen not only allows the seamless management of Metaspace, but also allows for improvements such as simplification of full garbage collections and future concurrent de-allocation of class metadata.

这篇关于字符串池是在PermGen区域或Heap的Object区域中创建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 15:22