[jboss-user] [Performance Tuning] - Re: Full Garbage Collection every few seconds – GC frees very little memory (JBoss 4.2.3 with JDK 1.5.0 64-bit)

Constantine Pinakoulakis do-not-reply at jboss.com
Tue Nov 30 13:02:12 EST 2010


Constantine Pinakoulakis [http://community.jboss.org/people/kopin] created the discussion

"Re: Full Garbage Collection every few seconds – GC frees very little memory (JBoss 4.2.3 with JDK 1.5.0 64-bit)"

To view the discussion, visit: http://community.jboss.org/message/573709#573709

--------------------------------------------------------------
Update:

It seems that the problem persists even after setting NewRatio=3 with the throughupt GC.

We therefore tried a different approach altogether by using the CMS collector (in order to minimize stop times) with the following settings on one of the servers :

JAVA_OPTS="-server -Xrs -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -XX:NewSize=300m -XX:ThreadStackSize=160  -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=60 -XX:+UseCMSCompactAtFullCollection -Djava.awt.headless=true -Djava.library.path=$JBOSS_NATIVE_DIR -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

I had to set NewSize explicitly, since NewRatio is ignored by the CMS collector (I read a post that said it is some sort of JVM bug).

We noticed that during the time the server with the Throughput GC was having a "bad" run, the one with the CMS collector was healthy, although they were both under significant load.  The server with the CMS collector recovered fully and the GC was freeing a lot of memory, while the one with the throughput GC did not and had to be restarted.

CMSInitiatingOccupancyFraction was set to 60, which is somewhat conservative; will probably need to experiment on that.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/573709#573709]

Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101130/49c4ce30/attachment-0001.html 


More information about the jboss-user mailing list