GC/Heap usage

Bryce McKinlay mckinlay@redhat.com
Mon Nov 8 14:44:00 GMT 2004

Rutger Ovidius wrote:

>I'm looking for a way to make the gcj GC manage my heap more similarly
>to sun's java. Heap use seems tremendously excessive with my app
>(compared to java) and I'm out of ideas on how to keep it under
>I compile with gcj win32 gcc version 4.0.0 20041014 (experimental).
>I let 3 instances of my app run for a few hours. One is gcj compiled,
>one is normal sun's java, and one is under borland optimizeit
>It creates/destroys many strings and other temp objects every second
>of use; it also uses WeakHashTable for weak references. 

Hi Rutger,

WeakHashMap could be the source of the problem. See: 



More information about the Java mailing list