Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-4620

The high CPU usage by the pmm-agent process related to MongoDB Query Analytics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta7, 2.1.0
    • Fix Version/s: 2.3.0
    • Component/s: QAN Agent
    • Labels:
    • Story Points:
      5
    • Sprint:
      Platform Sprint 5, Platform Sprint 6, Platform Sprint 7, Platform Sprint 8, Platform Sprint 9, Platform Sprint 10
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Packaging:
      No
    • Needs Doc:
      Yes

      Description

      STR

      1. Install PMM2 (201909051008)
      2. install pmm2-client
      3. Add MongoDb to PMM2
         pmm-admin add mongodb --use-profiler localhost:27017 DefaultNoCluster
      4. Check pmm-agent process
        Given result:
        CPU usage of pmm-agent is more 50%
        I re-checked on servers with Replicaset Mongodb and single MongoDB, but the problem with CPU appears for all
        [nailya.kutlubaeva@bm-qanqa04 ~]$ pmm-admin --version
      ProjectName: pmm-admin
      Version: 2.0.0-beta7
      PMMVersion: 2.0.0-beta7
      Timestamp: 2019-09-05 10:09:39 (UTC)
      FullCommit: ec4a02044cfd73da53067564b651bbe8ab4e8ad4
      [nailya.kutlubaeva@bm-qanqa04 ~]$ pmm-agent --version
      ProjectName: pmm-agent
      Version: 2.0.0-beta7
      PMMVersion: 2.0.0-beta7
      Timestamp: 2019-09-05 10:10:00 (UTC)
      FullCommit: 4cdd9420c0205120b9d218525c4e63e4a82dafd7

      Steps

      • Remove code that is clearly not used.
      • Add logging, especially around connection/disconnection.
      • Add pprof labels: https://rakyll.org/profiler-labels/
      • Try to find and fix this bug.

        Attachments

        1. image-2019-11-26-15-10-54-013.png
          image-2019-11-26-15-10-54-013.png
          184 kB
        2. image-2020-02-04-23-58-26-763.png
          image-2020-02-04-23-58-26-763.png
          189 kB
        3. image-2020-02-04-23-58-50-294.png
          image-2020-02-04-23-58-50-294.png
          196 kB
        4. image-2020-02-04-23-59-48-968.png
          image-2020-02-04-23-59-48-968.png
          140 kB
        5. image-2020-02-05-00-01-00-758.png
          image-2020-02-05-00-01-00-758.png
          112 kB
        6. image-2020-02-05-00-01-45-740.png
          image-2020-02-05-00-01-45-740.png
          117 kB
        7. pmm-agent.debug
          68 kB
        8. pmm-agent.log
          14 kB
        9. pmm-server_2019-09-05_12-54.zip
          46 kB
        10. profile.tar.gz
          30 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              nailya.kutlubaeva Nailya Kutlubaeva
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 4 days, 6 minutes
                  4d 6m

                    Smart Checklist