Thursday, January 08, 2009

how to detect memory leak issue in JVM

昨天写在performanceengineer.com的一个comment,自己引用一下。博主已经很久没有更新网站,昨天一看,一下写了还不少:)

12 May 2008 - 11:22pm — joychester
why not use jconsole6 first

Here is my practice based on my daily testing work, not that hard if you make it systemiclly:
1.jconsole is a very good tool for detecting java memory leak issue at first.
2.narrow down the test cases or senarios to find which part may cause the problem
3.also i love jmap to get heap dump snapshot to get deep analysis after we are clear we have an issue on memory.
4. use some tool to read the binary heap dump file if necessary

No comments:

Post a Comment