Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What free tools are available to analyze lock contention in java?

I need to determine which locks are the most-contended-for in my application code. What free tools can I use to determine this ?

like image 290
krosenvold Avatar asked Dec 14 '22 03:12

krosenvold


1 Answers

you can use jconsole or jstack both in the bin directory of your JDK. The jconsole in particular allows you to connect to your process and monitor the threads including which resources they have locked, and it can help you identify a deadlock state.

like image 148
pfranza Avatar answered Dec 15 '22 16:12

pfranza