Thursday, 15 November 2012

Generating heap dump in WAS

1. Start the wsadmin scripting client. You have several options to run scripting commands, ranging from running them interactively to running them in a profile.

2. Invoke the generateHeapDump operation on a JVM MBean, for example,
- Finding JVM objectName:
   <wsadmin> set objectName [$AdminControl queryNames WebSphere:type=JVM,process=<servername>,node=<nodename>,*]  
- Invoking the generateHeapDump operation on JVM Mbean:
   <wsadmin> $AdminControl invoke $objectName generateHeapDump
where, 
$is a Jacl operator for substituting a variable name with its value
invokeis the command
generateHeapDumpis the operation you are invoking
<servername>is the name of the server on which you want to generate a heap dump
<nodename>is the node to which <servername> belongs


3. Important to AMD 64-bit users: You must specify the -Xtrace option to take heap dumps.

No comments:

Post a Comment