For debugging purposes, I want to figure out which threads of my program are still running. There’s seems to be one or more threads that accidentally were not interrupted. Some sort of nice printable format would be a bonus.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
jVisualVM is your friend for this kind of debugging. It’s in the /bin directory of your JDK install. Shows all of the threads as a graph view and allows you to drill down into what they’re doing. The
Thread Dumpbutton will print out all of their current stack traces so you can see if something is stuck somewhere in your user code.