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

Report manager - 100% CPU utilization, endless loop

XMLWordPrintable

    • S24-W44/45, S24-W46/47
    • 1

      Steps to reproduce:

      1. Upgrade 6.4 to 7.0 with one scheduled report

      Result:

      CPU utilization for report manager is almost 100%, always:

      Expected:

      No load because there is one daily report

      Analysis:

      strace repeats these lines in an endless loop:

      newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298, ...}, 0) = 0
      openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 20
      newfstatat(20, "", {st_mode=S_IFREG|0644, st_size=2298, ...}, AT_EMPTY_PATH) = 0
      newfstatat(20, "", {st_mode=S_IFREG|0644, st_size=2298, ...}, AT_EMPTY_PATH) = 0
      read(20, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 2298
      lseek(20, -1449, SEEK_CUR)              = 849
      read(20, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 1449
      close(20) 

      The last line from the report manager on the server start:

       11601:20241025:204647.838 In rm_report_calc_nextcheck() now:2024.10.25 20:46:47

      This function never returns. Not sure, but this might mean there is something wrong in the loop in zbx_get_report_nextcheck()

            solonkins Sergejs Olonkins
            Kalimulin Alex Kalimulin
            Team B
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: