IBM Version 52 Computer Accessories User Manual


 
2. In the iSeries command line, enter WRKACTJOB.
3. Locate the two QP0ZSPWP jobs that are running in Sterling B2B Integrator and
note the name of the user associated with these jobs.
4. Press F11 twice to locate the job numbers.
5. In the iSeries command line, enter DMPJVM and press F4.
6. In the Dump Java Virtual Machine (DMPJVM) panel, enter QP0ZSPWP as the
job name and user as the user prompt and jobnumber as the number prompt.
7. Press Enter. The thread dump is completed.
8. Repeat step 6 for the second job number.
9. In the command line, enter WRKSPLF and locate the two QDMPJVM spooled
files. These files are the output from your thread dump.
Reading a Thread Dump
A thread dump contains the following components:
v List of all the threads running in a virtual machine.
v List of all the created monitors, including the current owner and number of
threads waiting for that monitor to be released.
v List of all the special monitors used internally in the virtual machine.
Each thread has an associated state. The following states may be associated with a
thread:
v Other than IBM JVMs:
runnable – Running or executable thread.
object.wait () – Thread is waiting on a condition variable.
v For IBM JVM:
R – Running or executable thread.
S – Suspended thread.
CW – Thread is waiting on a condition variable.
MW – Thread is waiting on a monitor lock.
MS – Thread is suspended waiting on a monitor lock. An MS state indicates a
virtual machine error.
The following example shows a thread in a runnable state and a thread in a
waiting state:
"RMI TCP Accept-0" daemon prio=5 tid=0x015931f0 nid=0x1a
runnable [bbbff000..bbb ffc28]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked <0xcc709620> (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:334)
at java.lang.Thread.run(Thread.java:534)
"RMI RenewClean-[10.117.2.193:58586,
com.sterlingcommerce.woodstock.util.frame.jndi.AddrClientFactory@c837cd]"
daemon prio=5 tid=0x00b5f6f8 nid=0x13 in Object.wait()
[bc97f000..bc97fc28]
at java.lang.Object.wait(Native Method)
- waiting on <0xcc709728> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
238 Sterling B2B Integrator: Performance Management