How to detect deadlock ? Timeout in synchronized block?

后端 未结 7 2104
北荒
北荒 2020-12-29 09:00

I’m debugging a Java application that runs several threads. After a while of watching the log it seems that one of those threads is not running anymore. My guess is that the

7条回答
  •  青春惊慌失措
    2020-12-29 09:41

    You can use Java Management Extension (JMX) API to figure out dead lock in java. Check out http://ourownjava.com/how-to-identify-deadlock-in-java for an example.

提交回复
热议问题