You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/13 10:27:46 UTC

[GitHub] [pulsar] tjiuming opened a new issue, #18038: [drafting]PIP-213: Add per-thread CPU usage metrics

tjiuming opened a new issue, #18038:
URL: https://github.com/apache/pulsar/issues/18038

   ### Motivation
   
   Introduce the metrics for thread CPU usage which can help Pulsar maintainers to detect performance issues related to parts of threads that run with high CPU usage, especially the IO thread.
   
   This part is also the missing part of Apache Pulsar. The thread pool and thread CPU usage are very useful for troubleshooting performance issues like publishing latency spikes.
   
   And we can also adjust the ThreadPool according to the metrics, increase the number of threads of a certain type, or decrease. It’s useful to help our users to improve broker performance by operations.
   
   
   ### Goal
   
   1. Provide per-thread CPU usage metrics.
   
   ### API Changes
   
   _No response_
   
   ### Implementation
   
   Java provides MXBean to monitor JVM inner stats, I’ll implement per-thread CPU usage by [ThreadMXBean](https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/java/lang/management/ThreadMXBean.java).
   
   ### Alternatives
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tjiuming commented on issue #18038: [drafting]PIP-213: Add per-thread CPU usage metrics

Posted by GitBox <gi...@apache.org>.
tjiuming commented on issue #18038:
URL: https://github.com/apache/pulsar/issues/18038#issuecomment-1294991730

   @codelipenghui OK


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] codelipenghui commented on issue #18038: [drafting]PIP-213: Add per-thread CPU usage metrics

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #18038:
URL: https://github.com/apache/pulsar/issues/18038#issuecomment-1294665720

   @tjiuming Could you please help put a summary for this proposal? Maybe some users also try to find a solution to get the metrics of threads.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tjiuming closed issue #18038: [drafting]PIP-213: Add per-thread CPU usage metrics

Posted by GitBox <gi...@apache.org>.
tjiuming closed issue #18038: [drafting]PIP-213: Add per-thread CPU usage metrics 
URL: https://github.com/apache/pulsar/issues/18038


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tjiuming commented on issue #18038: [drafting]PIP-213: Add per-thread CPU usage metrics

Posted by GitBox <gi...@apache.org>.
tjiuming commented on issue #18038:
URL: https://github.com/apache/pulsar/issues/18038#issuecomment-1294996363

   For per-thread CPU usage metrics, we can use [process-exporter](https://github.com/ncabatoff/process-exporter) as an instead. 
   process-exporter could monitor all the Java processes on the Linux machines, and expose per-thread CPU usage metrics including thread name.
   so, the process-exporter could fully replace the PIP


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org