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

Slow frontend due to show variables and show tables queries

XMLWordPrintable

    • Prev.Sprint, S24-W36/37

      Show queries take very long time on installations with very limited resources:

      *************************** 1. row ***************************
                    query: SHOW VARIABLES LIKE ?
               exec_count: 34
      total_exec_time_sec: 7940.9905
        avg_exec_time_sec: 233.5585
      *************************** 2. row ***************************
                    query: SHOW TABLES LIKE ?
               exec_count: 34
      total_exec_time_sec: 6186.3658
        avg_exec_time_sec: 181.9519
      *************************** 3. row ***************************
                    query: SELECT `han` . `ha_nodeid` , `han` . `address` , `han` . `port` , `han` . `lastaccess` FROM `ha_node` `han` WHERE `han` . `status` = ? ORDER BY `han` . `lastaccess` DESC LIMIT ?
               exec_count: 4
      total_exec_time_sec: 1561.7748
        avg_exec_time_sec: 390.4437
      *************************** 4. row ***************************
                    query: SELECT `valuemapid` , `hostid` FROM `valuemap` WHERE `valuemapid` IS NULL
               exec_count: 10
      total_exec_time_sec: 1227.9473
        avg_exec_time_sec: 122.7947
      

      They should be avoided by using mysqli_set_charset and select null from dbversion

            zabbix.dev Zabbix Development Team
            vso Vladislavs Sokurenko
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: