GC/Heap usage

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


Rutger Ovidius wrote:

>Hi,
>
>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
>control.
>
>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
>profiler.
>
>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: 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16997

Regards

Bryce



More information about the Java mailing list