users@glassfish.java.net

System.gc() considered harmful

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Jun 2010 12:59:25 PDT

I recommend that glassfish have the switch to disable explicit garbage collection with System.gc() included in the default installed setup. I inherited code with an explicit gc() call, and I suspect a 3rd party library was also calling it.

-XX:+DisableExplicitGC

This blog entry sums it up nicely: http://java-n-stuff.blogspot.com/2009/08/turn-on-disableexplicitgc-now.html

With this and some other performance tuning glassfish is running much better for me.
[Message sent by forum member 'culli']

http://forums.java.net/jive/thread.jspa?messageID=473951