Why does allocated size of permanent generation increase after executing perform GC?

别等时光非礼了梦想. 提交于 2019-12-05 05:53:55
  • The memory-allocation Heap/Perm/Eden/Young/S1/S2 etc spaces depends on the underlying algorithm used for GC.
  • Memory allocation to above spaces are not defined as absolute values parameters. They are defined as ratios to total heap / perm available to JVM.
  • Above two points probably point out that when Heap size changes, all memory allocations to all spaces are re-evaluated to maintain the ratio which are defined.

Below link will be really useful:

http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html

since nobody offers an answer, I make my comment an answer, although it is a little vague:

I'd guess that the GC reevaluates the various sizes it has to control as part of the collection run. So it might decide that it is a little tight on the perm gen side of things an increase it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!