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.
source
share