I'm using Java Mission Control to profile my application. Amongst the useful metrics in the "Threads" tab is the number of times each thread was blocked. However, I can't seem to find a way to get which lines of code threads were blocked on. Is there a way - either programatically or via JMC - to work out where the blocking is occuring?
You can see the different stack traces in the Hot Methods subtab on the Threads/Hot Threads tab, click a thread to see the stack traces only for that.
In JMC 6 you see the same info in the Lock Instances page, and the stack traces in the Stack Trace view.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.