Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-Ducc
-
None
Description
Looks like an Agent is not calculating CPU percentage correctly when running with cgroups and JP spawns child processes. It correctly iterates over all processes in the cgroup but it keeps collecting CPU from the JP stat file in the /proc file system.
To fix this, while iterating over procs in the cgroup, open process stat file to read the CPU. Make sure to close the file when done.