Migrating Java Applications to HP-UX
28
Figure 21 Lock Delay - Call Graph Tree
7. Look at lock delay at thread level instead of process level (Figure 22):
Select Scope->Thread (Change to thread scope)
Select Metrics->Threads/Locks->Lock Delay - Method Exclusive
Figure 22 Thread level Lock Delay - Method Exclusive
Reducing Lock Contention in Your Application
To reduce lock contention, there are several recommended options to try:
• Tune the thread count in the application (most likely reduce number of threads)
• Tune deployment of Java (see next section "Deployment of Java Instances and Processor
Usage")
• Make application modifications to reduce lock contention (break up locks or hold locks for
shorter time)
• Modify thread scheduling policy (see section “Other Factors”)