Analyzing Monitor Lock Contention

Lock contention is a performance problem that is specific to Java and other concurrent languages. Lock contention is a measure of how many threads are trying to acquire the lock, and how often they attempt it. When the contention is high, threads spend time waiting to enter the object monitor instead of doing useful work.

HPjmeter is sometimes able to suggest which methods suffer from lock contention - see the Automatic Analysis subsection on the previous page.

[Back]