Why is PermGen space growing?

后端 未结 7 1964
孤独总比滥情好
孤独总比滥情好 2021-01-31 11:05

I\'ve read a few articles, and I understood the following (please correct me and/or edit the question if I\'m wrong):

The java heap is segmented like this:

7条回答
  •  执念已碎
    2021-01-31 11:46

    The most common causes I've seen are:

    • Custom classloaders that don't carefully free up older classes after loading new ones.
    • Classes remaining in PermGen after redeploying an application multiple times (more common in Dev than Prod)
    • Heavy use of Proxy classes, which are created synthetically during runtime. It's easy to create new Proxy classes when an a single class definition could be reused for multiple instances.

提交回复
热议问题