Java HotSpot 1.6 VM, Garbage Collection - Scary PermGen

Posted by Gala101 on Stack Overflow See other posts from Stack Overflow or by Gala101
Published on 2010-05-11T10:08:15Z Indexed on 2010/05/11 10:54 UTC
Read the original article Hit count: 372

Filed under:
|
|
|

Hi,

My app shows rising 'Old Generation'/'Tenured Generation' size, and when this reaches the max limit for 'Old Gen', then suddenly PermGen size increases. Here are my generation sizings:

-Xmx1200m -Xms1200m -Xmn450m -XX:MaxPermSize=600m -XX:+UseParallelGC

This is on 32 bit Fedora so can't have a bigger heap than this.

The app is not doing any fancy classloading, though it is using Spring IOC and Hibernate, the Spring App-context.xml defines some 1000 Beans.

This app starts with 175MB PermGen, which steadily increases to ~250MB in few hrs, stays that way till Tenured Generation reached ~780 MB, then permgen jumps to ~500MB while Old Gen drops to ~500MB.

This forces me to restart the App on daily basis, and gives me real scare of looming OutOfMemory Error.. Any insights would be very helpful.

Thanks Gala101

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection