Even
Even

Reputation: 287

What is the right command line to get cpu usage for certain process in java

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

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!

Upvotes: 3

Views: 1754

Answers (1)

Related Questions