Finding Memory Leaks
As Jon Bentley said, “Make it work before you make it work fast.”
I got this line in the JMP user guide. By the way, JMP stands for Java Memory Profiler.
Oh yeah, we’re now looking for possible memory leaks.
I also found out that JMP can be installed in Gutsy Gibbon using apt-get.
After installing, I tried running it with MAVEN.
added the -Xrunjmp:<your options> in the MAVEN_OPTS, it worked.
There are three things you can profile with this tool:
- Profiling objects to find memory leaks and find causes for heavy memory usage
- Profiling methods to find out where your program spends time
- Inspect threads to find out why your program is blocked
SPEAK / ADD YOUR COMMENT
Comments are moderated.
You must be logged in to post a comment.

