Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19368

High CPU usage by history syncer due to very frequent sorting and checking for unique values

XMLWordPrintable

    • Sprint 76 (May 2021)
    • 1

      History sync is slower due to high CPU usage because of sorting for each element added to array, should add everything and sort once.

      In function zbx_extract_functionids() there is function call to zbx_eval_get_functionids() which add functionid to array and sort that array + make unique.
      However in case 1000 triggers are processed it will attempt to sort same array 1000 times and make unique 1000 times + 1 in the end.

      Expected:
      Array is sorted once to reduce CPU usage, also memory should be reserved for array.

            wiper Andris Zeila
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: