2011년 9월 21일 수요일

[WebSphere] How to manually generate a Heapdump in WebSphere on Windows

How to manually generate a Heapdump in WebSphere on Windows



1. From a Windows Command Prompt, enter the wsadmin.bat command to get a wsadmin command prompt.
wsadmin.bat [-host host_name] [-port port_number] [-user userid[-password password]

2. Get a handle to the problem application server:
wsadmin> set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]

3. Generate a heapdump:
wsadmin> $AdminControl invoke $jvm generateHeapDump

3B: If you want a javacore too:
wsadmin> $AdminControl invoke $jvm dumpThreads

댓글 없음:

댓글 쓰기