From the course: Java Concurrency Troubleshooting: Latency and Throughput
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Solution: Find the sleeping method - Java Tutorial
From the course: Java Concurrency Troubleshooting: Latency and Throughput
Solution: Find the sleeping method
(upbeat music) - [Instructor] Welcome back, detective. So how did it go? You know what, let me give it a try. So let's go into my IDE here, and we're running Intellij. Here's my TroubleshootLatencyConcApplication, here's the main method, going to right-click and run that method. Now, with the code running, I should only need to nip over to my command prompt window and find the ID of the Java process being run by my Intellij. Cut over to the command prompt. Here we are. Now, because Intellij itself is a Java application, it will always have its own Java process. So we're just going to run tasklist /fi filter by imagename equals java.exe. There we have it, three Java processes. You also probably have other Java applications running on your machine, so that could make it more challenging to narrow down which specific process is holding the sample application. I'm just going to select the latest process here, and…
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
-
-
-
-
Find the source of a blockage4m 46s
-
Collect thread dumps5m 41s
-
Challenge: Find the sleeping method1m 4s
-
Solution: Find the sleeping method3m 27s
-
Identify blocked threads in thread dumps4m 46s
-
View blocked threads with Java Mission Control6m 20s
-
View blocked threads with Java Flight Recorder5m 43s
-
Microbenchmarks in Java with JMH7m 53s
-
Challenge: Run JMH benchmarks and compare28s
-
Solution: Run JMH benchmarks and compare2m 58s
-
-