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 Flight Recorder - Java Tutorial
From the course: Java Concurrency Troubleshooting: Latency and Throughput
View blocked threads with Java Flight Recorder
- [Instructor] The Java Flight Recorder, JFR for short, is an add on to the JVM, and somehow it's even more awesome than Java Mission Control. You can add it to a standalone JVM by passing in these JVM parameters at startup. For this demonstration, though, we're going to use it inside the Java Mission Control console, JMC. What JFR offers us is the opportunity to quietly record the conditions of the JVM, resource utilization, threads, class loading, garbage collection, the works. Every single thing that's happening in your JVM with an application can be recorded for your later inspection. We can define specific events to trigger specific actions, we can record the JVM continuously, or for a specific timeframe. All of this for very very low overhead that doesn't noticeably affect the performance of the JVM. This is why I'm especially fond of JFR. The other commercial monitoring solutions typically require an agent to be…
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)
-