Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6757

High CPU usage due to DataCollectionConfigDao.getConfiguredResourceTypes() while Collectd starts

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.8, 1.13.3
    • Fix Version/s: 1.12.9, 1.13.4
    • Component/s: Data Collection - SNMP
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Analyzing a big installation of OpenNMS (~ 8000 nodes, ~ 45000 monitored services), I've discovered thanks to a JFR that I took 1 hour after starting OpenNMS that the "hot method" (or the most called and/or expensive method,) was DataCollectionConfigDao.getConfigured ResourceTypes().

      When OpenNMS starts, Collectd is going to schedule data collection for all the nodes, and of course that involves calling that method.

      It is necessary to accelerate that method, for a similar reason to the problem reported on NMS-6748.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: