top -b -p $PID
or ps:
ps -p $PID -o %cpu | tail -n +2
Unfortunately collectd doesn't seem to be able to collect CPU usage for a specific user or PID.
Anything about Java, WebLogic, OSB, Linux etc.... this is my logbook of a navigation in the IT Technology ocean.
top -b -p $PID
ps -p $PID -o %cpu | tail -n +2
No comments:
Post a Comment