Tuning in Zabbix involves fine-tuning processes, caches, and maintenance mechanisms to adapt the server to the workload of the environment. The goal is to use available resources efficiently, reduce processing bottlenecks, and minimize the load on the database.
However, tuning does not simply mean increasing configuration values. Each change should be based on identifying a bottleneck and accompanied by an analysis of its effects on CPU, memory, storage, and the database. There is no one-size-fits-all configuration: sizing depends on the characteristics and workload of each environment.

Zabbix parameters can be adjusted in the /etc/zabbix/zabbix_server.conf file or, when running in containers, through environment variables. To apply these changes, the Zabbix server must be restarted.

If you use Docker to run Zabbix or are interested in this deployment approach, I’ve also written a dedicated article covering the deployment and configuration of a containerized Zabbix environment:
In this section, we will explore some of the main components that can be adjusted: collection processes, in-memory caches, and database maintenance mechanisms. In addition to these parameters, it is essential to monitor Zabbix internal metrics to determine when a component is becoming a bottleneck. All the parameters mentioned can be found in the official Zabbix documentation.
Collection Tuning #
Pollers are Zabbix processes responsible for performing different types of checks on hosts. When the number of checks or the time required to process them exceeds the available capacity, processes can become busy, causing items to accumulate delays in the queue.
This phenomenon is commonly associated with what is known as poller starvation. Under heavy load, checks may be processed with delays and, in extreme cases, reach their timeout, resulting in data loss, delayed metric updates, and false availability alerts.
The number and types of processes used by Zabbix can be adjusted through different parameters.
StartPollers controls generic polling processes, while recent versions of Zabbix also provide specific parameters for certain types of checks, such as StartSNMPPollers, StartAgentPollers, and StartHTTPAgentPollers.
StartPollersUnreachable maintains dedicated processes for handling devices considered unreachable. This is important because checks waiting for a timeout can occupy processes for extended periods, preventing the entire pool of pollers from being affected by unavailable devices.
StartPingers controls the processes responsible for ICMP checks. StartPreprocessors determines the number of processes responsible for preprocessing received values, while StartDiscoverers controls the processes used for network discovery.

The fundamental principle is to avoid increasing these parameters indiscriminately. Adding processes may reduce a specific queue, but it also increases CPU and memory consumption, as well as file descriptor usage. Therefore, adjustments should be accompanied by monitoring process utilization and the overall behavior of the server.
To reduce the amount of data collection concentrated on the main server, it is also possible to use Zabbix Proxy and active Zabbix Agent checks. Zabbix Proxy allows collection to be distributed across different points in the infrastructure. However, it does not transfer all processing to the proxy: certain operations, such as trigger processing, are still performed by the Zabbix Server.
With active checks, the agent initiates communication with the server or proxy and sends the collected values. This reduces the need for pollers on the server for items configured in this way.
Another point to consider is the operating system’s file descriptor limit. Increasing the number of processes excessively can increase the number of connections and files used by Zabbix. If system limits are not properly configured, a process may reach the file descriptor limit and experience failures.
For this reason, increasing the number of pollers should always be an evidence-based decision. The goal is not to have as many processes as possible, but rather a number that matches the actual workload of the environment.
Cache and Memory #
To reduce unnecessary database operations and accelerate certain processing stages, Zabbix uses several in-memory caches.
The main ones include the configuration cache, which stores configuration information; the value cache, which stores values required for processing certain functions; and caches related to history and trends. Environments using VMware monitoring may also use VMwareCacheSize.
The size of these components can be adjusted through parameters such as CacheSize, HistoryCacheSize, HistoryIndexCacheSize, TrendCacheSize, ValueCacheSize, and VMwareCacheSize. However, simply increasing a cache because RAM is available does not necessarily result in better performance. The goal is to size each cache according to its actual usage.

Zabbix provides internal metrics to monitor cache utilization and includes triggers that can indicate excessive usage, such as Excessive configuration cache usage, Excessive history cache usage, and Excessive value cache usage.
These alerts should be interpreted as indicators that a particular component may be approaching its capacity, rather than universal thresholds that determine the correct configuration. Adjustments should take into account the environment’s behavior, workload growth, and available memory.
Housekeeper #
The housekeeper is the mechanism responsible for removing old data retained by Zabbix according to retention policies. Its operation prevents stored data from growing indefinitely.
Although necessary, the housekeeper can generate significant database load, especially in environments with large volumes of history and trends data. For this reason, its configuration should take into account both the amount of data and the database’s capacity.
HousekeepingFrequency defines how often, in hours, the housekeeping process runs. Increasing the frequency excessively can generate more frequent maintenance operations, while setting it too high may concentrate a larger amount of work into each execution.
Setting HousekeepingFrequency to 0 disables automatic housekeeping. This configuration requires data maintenance to be handled through other mechanisms, such as specific database routines and partitioning strategies, when applicable.
Another important parameter is MaxHousekeeperDelete. This parameter limits the number of records removed per task during a housekeeper execution, particularly in the context of data remaining in the database after items have been deleted.
This is especially relevant when an item or prototype has been applied to a large number of hosts. Deleting these objects afterward may leave a very large number of records to be removed. If the limit is not configured appropriately, a single cleanup operation can generate a significant load on the database.
When MaxHousekeeperDelete is set to 0, there is no limit on this quantity. In large environments, this can result in extremely heavy deletion operations. For this reason, the housekeeper should not be analyzed in isolation.
In large-scale environments, the retention strategy may also involve table partitioning and database-specific features. In certain architectures, this reduces the dependency on large DELETE operations for data maintenance.
It is also important to distinguish between data retention and housekeeping: the former defines how long data should be kept, while the latter represents the mechanism used by Zabbix to perform certain cleanup tasks.
To understand the details of how this works, it is worth consulting the official documentation on the housekeeping procedure.
Final Considerations #
Keeping Zabbix stable and ready to scale requires a balance between collection processes, caches, memory, storage, and the database.
Increasing an individual parameter may solve a specific bottleneck, but it can also shift the workload to another component. Increasing pollers may raise CPU and file descriptor consumption; increasing caches requires more memory; and housekeeping operations may increase database I/O and processing load.
For this reason, tuning should be guided by metrics and evidence, rather than by values considered universally ideal.
By continuously monitoring process utilization, caches, and database performance, and making adjustments according to the actual needs of the infrastructure, it is possible to reduce bottlenecks, improve environmental predictability, and keep Zabbix ready to accommodate infrastructure growth.