3
votes
1answer
1k views

How to compute PID cpu load?

Please help me to find a reliable way to compute (in a bash script) a jboss PID cpu load. To be specific, I don't know how to aggregate /proc/[pid]/stat fields to obtain the load a specific process ...