什么是正确的命令行来获取cpu使用java中的某些进程 [英] What is the right command line to get cpu usage for certain process in java

查看:286
本文介绍了什么是正确的命令行来获取cpu使用java中的某些进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定进程ID,在Java中,从进程中获取当前cpu使用情况的命令是什么。

Given a process ID, what is the right command to get the current cpu usage from the process, in Java.

命令typeperf\Memory\可用字节\processor(_total)\%处理器时间不适用于特定进程,并且任何第三方实用程序不是选项,ProcDump等。感谢任何指针!

The command typeperf "\Memory\Available bytes" "\processor(_total)\% processor time" is not for a specific process, and any 3rd party utility is not a option, ProcDump alike. Thanks for any pointers!

推荐答案

尝试 http://support.hyperic.com/display/SIGAR/Home

否则请查看 Java中的进程ID

这篇关于什么是正确的命令行来获取cpu使用java中的某些进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆