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

Slow query after restart zabbix-server

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • Server (S)
    • None

      After restart about 1 hour after - start log lines (see below). WEB GUI working but not informative - all triggers triggered

      This is fresh installation. Initial version is 5.0.3 and few times updated to release 5.0.10. Problem happens on each release.

      NO memory error logged, NO crashes of any component. NO increased RAM consumption

      Almost same problem is - https://support.zabbix.com/browse/ZBX-16347 - but we not faced with crashes and query is executed correctly (no error in logs, just warnings)

      Steps to reproduce:

      1. Restart zabbix-server service
      2. wait ~1 hour

      Actions applied:

      Restarts (with waiting when history\trends synced) help only for 1 hour - after that problem happens again.

      I'am not sure but last action helps:

      1. kill processes of zabbix-server
      2. restart master\slave postgresql
      3. restart pgbouncer
      4. start zabbix-server
      5. wait ~1hour slow query logged but with less time (about 5 sec) - do not restart. just let him sync

      Few lines from zabbix_server.log

       

      3485356:20210817:230021.437 slow query: 15.185377 sec, "update trends_uint set num=114,value_min=0,value_avg=0,value_max=0 where itemid=1591199 and clock=1629226800;
      update trends_uint set num=118,value_min=2147483645,value_avg=2147483645,value_max=2147483645 where itemid=761568 and clock=1629226800;
      update trends_uint set num=118,value_min=34,value_avg=34,value_max=41 where itemid=735302 and clock=1629226800;
      update trends_uint set num=59,value_min=127274725376,value_avg=192470241904,value_max=207835754496 where itemid=1069086 and clock=1629226800;
      .....
      

      Same moment in postgresql log

       

       

      2021-08-17 23:00:21.428 MSK [188153] here_user@here_db LOG:  duration: 15174.317 ms  statement: update trends_uint set num=114,value_min=0,value_avg=0,value_max=0 where itemid=1591199 and clock=1629226800;
              update trends_uint set num=118,value_min=2147483645,value_avg=2147483645,value_max=2147483645 where itemid=761568 and clock=1629226800;
              update trends_uint set num=118,value_min=34,value_avg=34,value_max=41 where itemid=735302 and clock=1629226800;
              update trends_uint set num=59,value_min=127274725376,value_avg=192470241904,value_max=207835754496 where itemid=1069086 and clock=1629226800;

       

            neogan Andrei Gushchin (Inactive)
            GOID GOID
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: