JMP - Java Memory Profiler JMP logo
 
General
About
Installation
Licence
Changelog
Screenshot
Performance

Download
Current version: 0.18
jmp.tar.gz

Contacts
Robert Olofsson
d94-rol@nada.kth.se

  Installation

The short way is the standard
./configure && make install

special configuration options: use the "--with-includes=dirs " to specify where the jdk is located jmp tries to use the JAVA_HOME environment variable and defaults to /usr/local/jdk if JAVA_HOME isn't set.
orc> ./configure --with-includes='/usr/local/jdk/include /usr/local/jdk/include/linux'

special LDFLAGS needed:
jmp tries to use gtk-config to find current gtk include files and libraries. Since jmp is in itself a shared library it needs to use the R flag for linking. So if you can build it but not run it check that the libjmp is correctly linked, it should look something like this:

robo@orc:~/lib > ldd libjmp.so
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4001d000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4014a000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x4017f000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40182000)
        libdl.so.2 => /lib/libdl.so.2 (0x401a6000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x401a9000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401b1000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401c0000)
        libm.so.6 => /lib/libm.so.6 (0x402a3000)
        libc.so.6 => /lib/libc.so.6 (0x402c1000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

So if your output contains any "file not found" or similar check that jmp is linked with the rpath set.

Running:
Make sure your LD_LIBRARY_PATH includes the directory where libjmp.so is located:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
java -Xrunjmp my.fine.java.Program