GC/Heap usage
Bryce McKinlay
mckinlay@redhat.com
Mon Nov 8 17:16:00 GMT 2004
Rutger Ovidius wrote:
>BM> Hi Rutger,
>>BM> WeakHashMap could be the source of the problem. See:
>BM> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16997
>>BM> Regards
>>BM> Bryce
>>Hi,
>>This may be another problem (which I _really_ hope can be corrected!
>no one likes leaks :) ), but I have a feeling that it isn't the main
>one. I don't have 30 megs of WeakHashMaps (or entries), and yet the
>heap grows rather quickly (unlike java) until it levels off at 30 megs.
>>Limiting the heap to 7 megs limited the "VM Size"(in Task Manager) to
>~15 megs, but the "Mem Usage" was still listed as 40 megs, which I
>don't quite understand.
>>
I don't know a lot about Windows memory management, but it might be that
"Mem usage" is the total virtual address space allocated by the app
while "VM size" represents the memory actually used (ie: the equivalent
of Resident set size in linux). Cursory speculation: Perhaps our GC on
Windows is a bit greedy and allocates more address space than it
actually needs?
Bryce
More information about the Java
mailing list