2011년 10월 7일 금요일

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

How to manually generate a Heapdump in WebSphere on Windows


2. Get a handle to the problem application server:

wsadmin> set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]

Where server1 is the name of the application server that you want a heapdump from. If wsadmin is connected to a Deployment Manager and if the server names in the cell are not unique, then you can qualify the JVM with a node attribute in addition to the process name.

Note: The contents in brackets "[.....]", along with the brackets, is not optional. It must be entered to set the jvm object. Also, note that there is a space between the words "completeObjectName" and "type", but not a linefeed:

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

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

댓글 없음:

댓글 쓰기