uber-common / jvm-profiler

JVM Profiler Sending Metrics to Kafka, Console Output or Custom Reporter
Other
1.79k stars 342 forks source link

Adding ThreadMXBean information in the profiler #52

Closed psuri closed 4 years ago

psuri commented 5 years ago

ThreadMXBean from the ManagementFactory is capable of providing Thread level metrics in the profiler which could be very useful while trying to debug memory issues as well. Few functions which I have found useful:

threadMXBean.getThreadCount(); threadMXBean.getPeakThreadCount() threadMXBean.getTotalStartedThreadCount()

I could add these as a PR perhaps in an existing Profiler class or create a new Thread level profiler class.

hiboyang commented 5 years ago

Yes, this is a good suggestion! Please feel free to add a PR. Also thanks for contributing!

rahul26goyal commented 4 years ago

Is anyone working on this request? If not, I am willing to contribute to this if someone can guide me a bit. I have gottne a basic understanding of the overall flow. cc : @boy-uber

hiboyang commented 4 years ago

Hi Rahul, I haven't got update that someone is working on this. It will be very welcome if you add code to support this :) Thanks!

hiboyang commented 4 years ago

PR merged