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

Solution: Find the sleeping method - Java Tutorial

From the course: Java Concurrency Troubleshooting: Latency and Throughput

Start my 1-month free trial

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…

Contents