jtop cpu 秒
我在 VisualVM 中使用 JConsole 的 JTOP 插件。这是我的CPU(秒)使用情况。我试图理解这句话的意思,是吗?
- a) 头部的时间(以秒为单位) CPU 的运行。
- b) 时间(以秒为单位) 第一个线程开始运行 时间(它可能不会一直运行)
- c) 其他时间?
感谢期待。
I am using JTOP plugin of JConsole in VisualVM. It somes me the CPU(secs) usage. I am trying to understand the meaning of this, is it?
- a) Time (in secs) the theead is
running of CPU. - b) Time (in secs) the
thread started running for the first
time (it might not be running always) - c) Some other time?
Thanks in anticipation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您指的是 JDK 发行版的 demo/management 文件夹中的 JTop Jconsole 插件:
它使用 ThreadMXBean.getThreadCpuTime(long) 来获取 cpu 时间。该方法的 javadoc 指出:
该值在放入表中之前由插件除以 10E9,因此您可以看到进程使用 CPU 的时间量(以秒为单位)。
If you mean the JTop Jconsole plugin from the demo/management folder of the JDK distribution:
It uses ThreadMXBean.getThreadCpuTime(long) to get the cpu time. The javadoc for this method states:
This value is divided by 10E9 by the plugin before put into the table, so you see the amount of Time the process was using the CPU in seconds.
我想说的是a),即。到目前为止线程在 CPU 上运行所花费的时间。
它实际上是 ThreadMXBean 的 ui。
来自该 JavaDoc:
这意味着总体 CPU 时间也是执行时间。
I'd say it's a), ie. the time the thread spent running on the CPU so far.
It's actually a ui for ThreadMXBean.
From that JavaDoc:
This implies that overall CPU time is also the execution time.