Java Troubleshooting Guide for HP-UX Systems
Figure 1-13 HPjmeter — Heap Monitor Screen
1.7.2.5.2 Sample Thread Deadlock Application
This application demonstrates how HPjmeter detects deadlocked threads. It creates pairs of
threads every 30 seconds, stopping at 50 threads, which synchronize work using shared locks.
Occasionally, the program reverses the order on which locks are taken, eventually causing a
deadlock, which generates a Thread Deadlock Alert.
The sample application is available from the HPjmeter installation directory:
Source: $JMETER_HOME/demo/DL1.java
Binary: $JMETER_HOME/demo/DL1.jar
Use the class name DL1 with the run_simple_jvmagent script to start the sample. Use the
Thread Histogram screen to view the thread activity. Deadlocked threads show a solid red bar.
The following figure is the Thread Histogram screen:
1.7 HPjmeter 35