在学习 java 内存分析时,除了“堆”之外,我不断看到术语“永久空间”。我知道堆是什么——烫发空间是什么?
最佳答案
它代表permanent generation :
The permanent generation is special because it holds meta-data describing user classes (classes that are not part of the Java language). Examples of such meta-data are objects describing classes and methods and they are stored in the Permanent Generation. Applications with large code-base can quickly fill up this segment of the heap which will cause
java.lang.OutOfMemoryError
: PermGen no matter how high your -Xmx and how much memory you have on the machine.
关于java - 什么是烫发空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1279449/