Hi there,
After completing a migration of vms to a knew host/enviorement, we noticed that the Zabbix UI is very slow. While Zabbix is still sending out notifications and processing data as usual, the web interface is taking almost 10 seconds to load a single page.
What steps can we take to troubleshoot this issue and what should we check first?
We are running Zabbix on a separate host/VM, with the database (MariaDB) on a different server. The underlying hypervisor is ESXi. What I've Checked and Adjusted So Far:
I’ve already investigated several areas and made the following adjustments, but the issue persists:
We are monitoring around 40 VM's.
2 CPU's and 8GB memory for DB server and another VM for the frontend with the same specs.
We are running on high-end enterprise servers, so i think 2 vCPU's should be enough (please let me know if not).
The load isn't high when i look with top and this worked before.Even when going to the local webpage of the server/IP it is slow. not just the external URL/domain.
Next Steps:
I would appreciate any advice on additional areas I should focus on or things I might have missed.
Is there anything else we should consider for performance tuning, especially on the database side or in Zabbix's configuration?
Thanks in advance for your help!
After completing a migration of vms to a knew host/enviorement, we noticed that the Zabbix UI is very slow. While Zabbix is still sending out notifications and processing data as usual, the web interface is taking almost 10 seconds to load a single page.
What steps can we take to troubleshoot this issue and what should we check first?
We are running Zabbix on a separate host/VM, with the database (MariaDB) on a different server. The underlying hypervisor is ESXi. What I've Checked and Adjusted So Far:
I’ve already investigated several areas and made the following adjustments, but the issue persists:
- PHP Configuration: Located in /etc/php/7.3/apache2/php.ini:
- memory_limit: Increased to 1000M (previously 256M)
- max_execution_time: Increased to 300 (previously 30)
- max_input_vars: Increased to 3000 (previously 1000)
- post_max_size: Increased to 32M (previously 8M)
- Apache MPM (prefork) Configuration: Located in /etc/apache2/mods-available/mpm_prefork.conf:
- StartServers: Increased to 10 (previously 5)
- MinSpareServers: Increased to 10 (previously 5)
- MaxSpareServers: Increased to 30 (previously 10)
- MaxRequestWorkers: Increased to 200 (previously 150)
- MaxConnectionsPerChild: Set to 1000 (previously 0)
- Database Optimization:
- Ran mysqlcheck --optimize --all-databases -u root -p < pretty sure that was all okay
- Updated MariaDB configuration in /etc/mysql/mariadb.conf.d/50-server.cnf with the following settings under [mysqld]:
- innodb_buffer_pool_size = 1G
- innodb_log_file_size = 256M
- innodb_flush_log_at_trx_commit = 2
- innodb_log_buffer_size = 16M
- innodb_thread_concurrency = 0
- innodb_io_capacity = 200
- query_cache_size = 64M
- query_cache_limit = 2M
We are monitoring around 40 VM's.
2 CPU's and 8GB memory for DB server and another VM for the frontend with the same specs.
We are running on high-end enterprise servers, so i think 2 vCPU's should be enough (please let me know if not).
The load isn't high when i look with top and this worked before.Even when going to the local webpage of the server/IP it is slow. not just the external URL/domain.
Next Steps:
I would appreciate any advice on additional areas I should focus on or things I might have missed.
Is there anything else we should consider for performance tuning, especially on the database side or in Zabbix's configuration?
Thanks in advance for your help!
Comment