java - OutOfMemory Exception - how does VisualVM help locate the memory leak with heapdump file? -
i've been testing webapp locally on pc , monitoring visualvm. started using jmeter, suggested should load testing since suspected have slow memory leak somewhere.
today webapp threw outofmemory
exception. had heapdumponoutofmemoryerror
, heapdumppath
params set in case ever happened. heap dump file generated.
i opened file (java_pid2760.hprof) in visualvm, , honestly, don't understand how i'm supposed able pinpoint culprit of memory leak...
how use visualvm analyze heap dump , find class/instance generating memory leak?
here's couple of links found helpful when debugging memory leaks:
http://olex.openlogic.com/wazi/2009/how-to-fix-memory-leaks-in-java/
http://www.ibm.com/developerworks/rational/library/05/0816_guptapalanki/
edit:
you might want try: http://rejeev.blogspot.com/2009/04/analyzing-memory-leak-in-java.html
Comments
Post a Comment