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.
Challenge: Find the sleeping method - Java Tutorial
From the course: Java Concurrency Troubleshooting: Latency and Throughput
Challenge: Find the sleeping method
(upbeat music) - [Tayo] How about you play detective with your JVM? First, please go ahead and import the exercise package for this video into your favorite IDE. When you're done, put your detective hat on. In this exercise package, please locate the com.linkedin.learning.samples.troubleshootlatencyconch application class. No peeking. Don't open any other files inside the project. Running the main method in this class will kick off a process of generating and printing anagrams to the console, but there's a catch. One or more of the executing methods goes to sleep during the process of generating the anagrams. Your mission, should you choose to accept it, is to capture thread dumps and identify the method in which the thread falls asleep. We're counting on you. Find sleeping beauty, good luck.
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)
-