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

DUCC Agent CPU percentage is wrong when JP spawn child procs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-Ducc
    • 2.1.0-Ducc, 2.0.1-Ducc
    • 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.

      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: