command line memory profiler tool  
Author Message
webuser





PostPosted: 2003-12-23 6:45:00 Top

java-programmer, command line memory profiler tool Hello,

I'm looking for a simple command line tool (no windows) to help find a
memory leak in a large amount of old java code. Need to keep the test
machine identical to the production box, which is without xwindows.

Thanks for your help,
Erik
 
Joe Fischer





PostPosted: 2003-12-23 8:54:00 Top

java-programmer >> command line memory profiler tool On 22 Dec 2003 14:45:09 -0800, email***@***.com (Erik) wrote:

>Hello,
>
>I'm looking for a simple command line tool (no windows) to help find a
>memory leak in a large amount of old java code. Need to keep the test
>machine identical to the production box, which is without xwindows.
>
>Thanks for your help,
>Erik

You could try the -Xrunhprof option on the java command that
you use to run the Java application. This is documented at
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html ; you
can also run java -Xrunhprof:help at the command prompt. The dump is
not very easy to read. There are some other tools that try to
summarize the data. I've tried a couple from IBM and HP (I don't have
the URLs handy). They are AWT/Swing, though.