We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ps的cpu使用率和top的cpu使用率计算公式是不一样的。我需要抓一个瞬间增高的CPU使用率。ps取出来的就不正确。希望可以修改成使用top的方式分析CPU使用率。
https://gist.github.com/sdslnmd/6060738 我粗略的写了一个临时用。
The text was updated successfully, but these errors were encountered:
不错!
这样如何? 把使用ps或top来获取cpu使用率作为show-busy-java-threads.sh命令的选项,比如 -t|--use-top
ps
top
cpu
show-busy-java-threads.sh
-t|--use-top
@sdslnmd 有时间来改一下show-busy-java-threads.sh不? 😄
PS: 对于瞬间增高的CPU使用率,少数几次的CPU使用率抓取概率上应该看不到。(使用监控系统定时反复抓取,可以加大被观察到的概率。)或者说某个线程有瞬间增高的CPU使用率对整体影响不大,是可以接受的。
CPU
你Case的需求是?我再理解一下。
Sorry, something went wrong.
use top command to get cpu percent #67 #23
ff406d9
e0e44f8
oldratlee
No branches or pull requests
ps的cpu使用率和top的cpu使用率计算公式是不一样的。我需要抓一个瞬间增高的CPU使用率。ps取出来的就不正确。希望可以修改成使用top的方式分析CPU使用率。
https://gist.github.com/sdslnmd/6060738
我粗略的写了一个临时用。
The text was updated successfully, but these errors were encountered: