Heap dump file size vs heap size  
Author Message
Michal Slocinski





PostPosted: 2008-3-25 18:19:00 Top

java-programmer, Heap dump file size vs heap size Hi,

Do you know how heap dump file size is related to heap size itself?
I've multiple heap dumps created using jmap on Solaris using Sun JVM
1.5.0_09 and somehow filesize doesn't relate to heap size itself.

Disproportions are quite big actually (even 500MB - 1GB)

Michal
 
GArlington





PostPosted: 2008-3-25 20:55:00 Top

java-programmer >> Heap dump file size vs heap size On Mar 25, 10:18 am, Michal Slocinski <email***@***.com>
wrote:
> Hi,
>
> Do you know how heap dump file size is related to heap size itself?
> I've multiple heap dumps created using jmap on Solaris using Sun JVM
> 1.5.0_09 and somehow filesize doesn't relate to heap size itself.
>
> Disproportions are quite big actually (even 500MB - 1GB)
>
> Michal

Look ta java.lang.Runtime class, see what it can give you...
Think about how the heap behaves, how gc() is working depending on
various settings, this may give you few clues why the heap size may
NOT be related to heap dump file size (and do not forget that there is
always extra info in the dump file too)...