From the course: Java Concurrency Troubleshooting: Latency and Throughput
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
View blocked threads with Java Mission Control - Java Tutorial
From the course: Java Concurrency Troubleshooting: Latency and Throughput
View blocked threads with Java Mission Control
- Man, I have been waiting for this part. Java Mission Control or JMC for short, and the Java Flight Recorder or JFR, are my two favorite tools, bundled with the JDK. They're a pair of fully featured JVM monitoring and analysis tools, that ship with the JDK. You haven't lived, till you run the Java Flight Recorder. Oracle removed the JMC from the JDK in version 11. You can now get it as a standalone tool, and I've already downloaded a copy. If you're running an older JDK, just go to your command line, or terminal window, and type in JMC and hit the Enter key. To run the JMC from your downloaded copy, just go to the bin directory from the downloaded project and run the jmc.exe application. Now let's check out this beauty. The JMC is chock-full of information. There's nothing you need to know about your JVM or the applications running on it that you can't get from this. It's called mission control for very good reason.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Find the source of a blockage4m 46s
-
(Locked)
Collect thread dumps5m 41s
-
(Locked)
Challenge: Find the sleeping method1m 4s
-
(Locked)
Solution: Find the sleeping method3m 27s
-
(Locked)
Identify blocked threads in thread dumps4m 46s
-
(Locked)
View blocked threads with Java Mission Control6m 20s
-
(Locked)
View blocked threads with Java Flight Recorder5m 43s
-
(Locked)
Microbenchmarks in Java with JMH7m 53s
-
(Locked)
Challenge: Run JMH benchmarks and compare28s
-
(Locked)
Solution: Run JMH benchmarks and compare2m 58s
-
(Locked)
-