Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Monitor thread creation/destruction

Moderators: Vladimir Kondratyev, Anton Katilin

Monitor thread creation/destruction

Postby eric.beard.medhost » Thu Jun 14, 2018 2:28 am

Is there a way to log who created each thread and how long it lived? I don't want to take multiple hprofs and try to analyze them. There are 10s of thousands of threads getting created and destroyed and I need to know who is responsible for creating them. I'd like to monitor for 10-15 minutes and get a list of all the threads created/destroyed, their lifetime, and creator (preferably with the creating class).

Posts: 1
Joined: Thu Jun 14, 2018 2:10 am

Re: Monitor thread creation/destruction

Postby Anton Katilin » Thu Jun 14, 2018 7:03 am

In the "Events" tab switch to "Events by Table" and select the "Thread" table in the tree:

This information is available in live view and in a performance snapshot, i.e. it is not needed to capture a memory snapshot to investigate thread life cycle.
Anton Katilin
Posts: 6027
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest


YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.