Java - How can I control the memory and CPU usage of another process

I need to get information about the memory and CPU usage of some process running on a machine (not a Java process).

How can i do this?

[I resumed the thread after it was closed as a duplicate of another thread. Another thread does not matter, it is not about getting information from another specific process].

+5
source share
1 answer

Listed below are options for different platforms.

Another possible way could be to call a native monitoring application from java using ProcessBuilder or RunTime java classes

+1
source

All Articles