java - Time taken during memory profiling using yourkit -


how time take profile java application @ 100g memory consumption on 150g machine? started profiling 2 hours , 20% done of now. total memory used jvm since started profiling has gone 150g (close ram size). normal high memory processes take huge amount of time while profiling using yourkit or doing wrong. possible since memory has reached ram memory lots of disk swapping happening slowing down memory profiling. how can make process faster. if not possible make faster, other ways investigate memory leak in java application?

well jvm is big :)

if have running jvm, fastest way informations objects in heap take jmap histogram :

jmap -histo:live <pid> 

it print live objects (:live gc) in heap, instances number, , (shallow) size.

of course isn't suited complicated analysis, enough find leak, if leak big : compare histogram 1 have before leak.

see doc @ http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html.


Popular posts from this blog