Translated message

A translation of this page exists in English.

JVMPeg

Updated -

简介

我们有一个在 JVM 线程消耗大量 CPU 资源时对线程进行分析的解决方案。JVMPeg 就是基于这个流行的解决方案设计的:Java 应用程序高 CPU。 当 JVM 消耗大量 CPU 时,我们需要分析线程的活动以决定哪个特定的线程消耗了大量 CPU。 我们基于上述解决方案开发了一个脚本,它会捕获 jstack 和 top 的输出以供 JVMPeg 进行分析。

有关分析的命令行版本,请参阅 javahighcpu

使用

  • 从以下链接下载相关的 high_cpu_*.tar.gz 脚本,How do I identify high CPU utilization by Java threads on Linux/Solaris
  • 根据解决方案文档的说明运行脚本。
  • 将生成的 high-cpu.out 和 high-cpu-tdump.out 拖放到对应的区域中。
  • (可选)选择 CPU 阈值(默认为 40%)。 它决定了开始显示线程的 CPU 消耗百分比阈值。

Was this helpful?

Get notified when this content is updated

Follow

Comments