The Pi sample program uses a simple Java program that allocates some arrays, thereby exhibiting the behavior of a
Source: $JMETER_HOME/demo/Pi.java
Binary: $JMETER_HOME/demo/Pi.jar
Use
•Expected Out Of Memory Error Alert (page 110) with the leaking rate.
•Array Leak Locations Alert (page 112) with the leak location.
When the default garbage collectors and heap size for Java HotSpot Virtual Machine 1.5.0.07 are used, the detection of a memory leak for this demonstration program occurs after about 90 minutes. This time can be substantially longer when using a different JVM or nonstandard garbage collector or heap settings.
In real situations, the detection time depends on the maximum heap size, the size of the leak, the application running time, and the application and load characteristics. Typically, the detection will occur in about two hours.
Here is an Array Leak alert for the sample program:Thread Deadlock Sample
This sample application demonstrates how HPjmeter detects deadlocked threads.34 Getting Started