What free tools are available for analyzing locks in java?

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

+5
source share
5 answers

you can use jconsole or jstack as in the bin directory of your JDK. The jconsole, in particular, allows you to connect to your process and control threads, including those resources that they blocked, and can help you determine the status of a deadlock.

+4
source

eclipse. "" "" "", "Java- > Show Monitors".

, ( ), , . , .

+3

VisualVM ( Java 1.6) (.)

+2

JDK - unix, kill -3 , windows, ctrl-break. , . , dusmp , , , .

+2

If you have code, you can create / look for a blocking implementation that collects competition statistics. If not, try the tools offered in other posts.

+2
source

All Articles