HP (Hewlett-Packard) 5992-1918 TV Antenna User Manual


 
Figure 1-13 HPjmeter - Heap Monitor Display
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 display to view the thread activity. Deadlocked threads show a solid red bar.
Following is an example thread histogram display:
34 Diagnostic and Monitoring Tools and Options