Search code examples
javajconsole

Jconsole on the linuxbox


Hi I need to use JConsole on the production Linux box any one has an idea how can I specify the path of dump file for a Mbean I am looking for HPOF file so that i could analyze the memory leaks.


Solution

  • Take a look at the documentation. In the section that highlights heap dumps, you can see the MBean you need to select inorder to trigger the heap dump. Note you can also have this happen automatically on out of memory with:

    -XX:+HeapDumpOnOutOfMemoryError