Search code examples
javaweblogicweblogic-10.xheap-dumpjrockit

How to generate heap dump using jrockit in Windows machine


I need to generate a heap dump. jrockit is being used for java and I have installed weblogic on a Windows PC and not Unix.

I can find many answers/command for generating heap dump in unix but none for windows.

I have two managed servers and wish to get a generated heap dump and store it in my PC. Not able to find a way out.


Solution

  • Add the below statement in your startWLSServer.cmd.

    set JAVA_OPTIONS=%JAVA_OPTIONS% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<<location of file>>
    

    This would work only if your jrockit version is R28 and above