Method Area and PermGen

前端 未结 4 578
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 14:45

I was trying to understand the memory structure of HotSpot JVM and got confused with the two terms \"Method Area\" and \"PermGen\" space. T

4条回答
  •  既然无缘
    2020-12-13 15:26

    You should take a look at Java Memory Types and optionally at this doc about the Garbage Collection in Java. The latter is very verbose and both are useful.

    Actually the Method area is a part of the Permanent Generation:

    A third generation closely related to the tenured generation is the permanent generation. The permanent generation is special because it holds data needed by the virtual machine to describe objects that do not have an equivalence at the Java language level. For example objects describing classes and methods are stored in the permanent generation.

提交回复
热议问题