Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The agent tries to access /proc/PID/statm and also tries to collect metrics via JMX from a process that may no longer be running producing exceptions in an agent log. The process metric collector runs at regular interval in a dedicated thread driven by a camel timer route. There seems to be a race condition when a process exits and before an agent can change its internal state, the metric collector thread attempts to access statm which is no longer in there.
When an exception is caught, check the state of the process and if it is not running dont log an exception