Java · Medium · Pro
Detecting deadlocks — jstack, ThreadMXBean, JFR?
JavaConcurrencySenior
Deadlock detection
Deadlock is circular lock wait. Detect with thread dumps (jstack, jcmd Thread.print), ThreadMXBean.findDeadlockedThreads(), or JFR lock events.