Re: command line memory profiler tool

From: Joe Fischer (jfischer_at___fischerhome__.org)
Date: 12/23/03


Date: Tue, 23 Dec 2003 00:54:12 GMT

On 22 Dec 2003 14:45:09 -0800, webuser@eriklindberg.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.



Relevant Pages

  • Re: A constructive debate: Eclipse or NetBeans?
    ... that Linux and command-line driven languages like OCaml are so much more ... That's because most people never learn to use a command line or a simple ... Trying to run other people's OpenGL-based Java demos from the web I find ... OpenGL). ...
    (comp.lang.java.softwaretools)
  • Testers wanted - OS/2 package of Java DVD menu creator
    ... Unfortunately Varsha didn't work out of the box on OS/2 - it had ... though the same commands worked at the command line. ... changes to the Java code and now seem to have this working. ...
    (comp.os.os2.multimedia)
  • Process.waitFor() returns, but threads reading output/error streams are blocked on read
    ... threads to read in the out/err streams, ... i'll include the java source below, but the problem seems extremely specific ... passed in on the command line). ... process is hung if i terminate the process the command line tool connects to ...
    (comp.lang.java.programmer)
  • Re: Timed wait fails under WebStart in Java 1.6 prerelease?
    ... the java command line. ... that I show you the jnlp specs for the configuration which does not run: ... java.specification.vendor: <Sun Microsystems Inc.> ...
    (comp.lang.java.programmer)
  • Re: Regexes on the command line
    ... When the java command inside the script executes it reanalyzes the command string and since the single quotes are gone it misinterprets the special characters. ...
    (comp.lang.java.programmer)