How to generate Java Heap Dump?
Posted on 2009-07-07
I want to generate Java Heap Dump to detect Memory Leak. Although I am able to generate Javacore files I could not generate heapdump files. I am using IBM Websphere 6.1 on Windows.
I did following settings:
Navigated to: Servers > Application Servers > Server1 (or the name of
the server to get a heap dump) > Process Definition > Environment Entries
Then set following properties:
IBM_HEAPDUMP = true
IBM_HEAP_DUMP = true
Then I am running following commands in command prompt:
wsadmin> set jvm [$AdminControl completeObjectName type=JVM,*]
wsadmin> $AdminControl invoke $jvm dumpThreads
Am I missing something?