HPjmeter 4.2 User's Guide
The example creates pairs of threads every 30 seconds, stopping at 50 threads, which synchronize
work using shared locks. Occasionally, the program reverses the order in which locks are taken,
eventually causing a deadlock, which generates a Thread Deadlock Alert (page 115).
The demo application is available from the HPjmeter installation directory:
Source: $JMETER_HOME/demo/DL1.java
Binary: $JMETER_HOME/demo/DL1.jar
Use —jar DL1.jar with the run_simple_jvmagent script to start the sample.
Use the Thread Histogram display to see the thread activity. Deadlocked threads show a solid
red bar.
Figure 3-2 Thread Deadlock Example Display
Monitoring Demonstration Instructions 35