Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Abandoned
-
None
-
None
Description
Agent collects node processes in multiple classes:
CGroupsManager.java
NodeMemInfoCollector.java
NodeUsersCollector.java
The processes are collected by exec'ing OS 'ps ..' command and scraping the output.
Refactor to use a single helper class to collect process info and make it available as a list to the above classes. This would hide the algorithm for obtaining process info from client classes as well as remove duplicated code.