Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4643

DUCC Agent logs exceptions while collecting metrics from dead process

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-Ducc
    • DUCC
    • 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

      Attachments

        Activity

          People

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: