Is permanent generation part of the heap or does it lies in a different space of itself in jvm

前端 未结 5 434
挽巷
挽巷 2021-01-02 14:39

I have seen multiple comments regarding this question - some say yes and some say no, and many of the answers are ambiguous. Can anyone please describe in simpler terms wher

5条回答
  •  既然无缘
    2021-01-02 15:17

    I came the same question when reading Java Garbage Collection Basics,in this turtorial,the author views permanent-generation is part of heap.

    But we have both:

    • -Xmx
    • -XX:MaxPermSize

    and after google the question,I find this questions Java heap terminology: young, old and permanent generations?,answers from which conclude:

    permanent-generation is not part of heap

提交回复
热议问题