Open rkurniawati opened 2 weeks ago
@rkurniawati Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@rkurniawati Thank you for signing the Contributor License Agreement!
Thank you for your feedback, @shakuzen! I agree it's a good idea to let the users enable these metrics when they need them. The APIs used by the deadlock metrics have some overhead in the JVM implementation that I use, calling the findDeadlockedThreads
triggers a JVM safepoint
which will cause a slowdown that may be significant to some applications.
When you suggest putting these in a separate class, do you mean put them in a separate metric binder? It would be great if you have an example of a metric that's disabled by default.
Thanks, Ruth
Hello,
I was wondering if you would consider accepting the changes in this PR so that we will have these two deadlock-related metrics in a future version of Micrometer?
This PR adds the following JVM thread deadlock-related metrics:
jvm.threads.deadlocked
: The current number of threads that are deadlockedjvm.threads.deadlocked.monitor
: The current number of threads that are deadlocked on object monitorsThanks, Ruth
Ruth Kurniawati