[ZBX-22247] "Monitoring → Hosts" menu fails (ERROR 504) when 20k+ hosts in server Created: 2023 Jan 24  Updated: 2023 Feb 02  Resolved: 2023 Feb 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.12
Fix Version/s: 6.0.13rc1

Type: Incident report Priority: Trivial
Reporter: LivreAcesso.Pro Assignee: Victor Breda Credidio
Resolution: Fixed Votes: 0
Labels: database, frontend, performance, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux zabbix-onu 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

postgresql-14/bullseye-pgdg,now 14.6-1.pgdg110+1 amd64


Attachments: PNG File image-2023-01-24-13-37-08-669.png     PNG File image-2023-01-30-16-33-10-238.png    

 Description   

Steps to reproduce:
20k+ hosts
Go to `zabbix.php?action=host.view'

Result:
A huge amount of wait;
ERROR 504 Gateway Time-out.

Expected:
A limited list of hosts, as defined at "Rows per page" user setting.



 Comments   
Comment by LivreAcesso.Pro [ 2023 Jan 25 ]

No error at `zabbix_server.log'.

Comment by Victor Breda Credidio [ 2023 Jan 30 ]

Hi LivreAcesso.

Please try checking the WebServer logs for errors or it's configuration related to Timeout

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support (https://zabbix.com/support) or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding. 

Best regards,
Victor.

Comment by LivreAcesso.Pro [ 2023 Jan 30 ]

I don't have the same issue at `zabbix.local/zabbix.php?action=host.list`, no "Timeouts":

Comment by LivreAcesso.Pro [ 2023 Jan 30 ]

/var/log/nginx/error.log:

2023/01/30 17:19:04 [error] 1565007#1565007: *824415 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.16.0.9, server: , request: "GET /zabbix.php?action=host.view HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/zabbix.sock", host: "suporte.zabbix.local", referrer: "http://suporte.zabbix.local/zabbix.php?action=dashboard.view"

 

Comment by LivreAcesso.Pro [ 2023 Jan 30 ]

/etc/php/7.4/fpm/pool.d/zabbix-php-fpm.conf:

[zabbix]
user = www-data
group = www-data

listen = /var/run/php/zabbix.sock
listen.owner = www-data
listen.allowed_clients = 127.0.0.1

pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 36
pm.max_requests = 200

php_value[session.save_handler] = files
php_value[session.save_path]    = /var/lib/php/sessions/

php_value[max_execution_time] = 600
php_value[memory_limit] = 2G
php_value[post_max_size] = 128M
php_value[upload_max_filesize] = 2M
php_value[max_input_time] = 600
php_value[max_input_vars] = 32000

Comment by LivreAcesso.Pro [ 2023 Feb 02 ]

Fixed with https://www.zabbix.com/rn/rn6.0.13

Comment by LivreAcesso.Pro [ 2023 Feb 02 ]

Release 6.0.13 fixed this.

Generated at Tue Apr 29 07:22:40 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.