Improved Garbage Collection performance

Bryce McKinlay
Wed Dec 3 22:58:00 GMT 2003

On Nov 19, 2003, at 5:42 PM, John Neil wrote:

> Following a post from Jeff Sturm, I tried two relatively simple
> modifications to gcj and boehm garbage collection and was able to gain 
> a
> 200-300% improvement on a full garbage collection (from ~150ms to 
> ~50ms).

Wow - this suggests that this optimization will go a long way towards 
closing the GC-performance gap we seem to have compared to recent 
hotspot VMs.

Incidentally, I recently stumbled across this "real world", 
allocation-intensive app which performs poorly with GCJ relative to JRE 

You also need these input files:

It runs nearly twice as fast under the Sun VM. However, setting 
GC_INITIAL_HEAP_SIZE to even a modest amount such as 4MB increases its 
performance dramatically (although still a bit slower than the JRE). I 
wonder if there is also a case for tweaking the heap expansion 



More information about the Java mailing list