You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2015/10/08 18:31:26 UTC

[jira] [Closed] (UIMA-4643) DUCC Agent logs exceptions while collecting metrics from dead process

     [ https://issues.apache.org/jira/browse/UIMA-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-4643.
-------------------------------
    Resolution: Fixed

log exceptions from metrics collector only if state of the process is Running

> DUCC Agent logs exceptions while collecting metrics from dead process 
> ----------------------------------------------------------------------
>
>                 Key: UIMA-4643
>                 URL: https://issues.apache.org/jira/browse/UIMA-4643
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.1.0-Ducc, 2.0.1-Ducc
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)