Details
-
Problem report
-
Resolution: Commercial support required
-
Trivial
-
None
-
None
-
None
-
None
Description
Try to import template via the web ui, but it is unsuccessful, the page response is very slow, and the status window keeps spinning in circles, and I check the front nginx error, seems is and php issue:
------------------------------------------------------------------------------
2022/08/03 07:18:37 [error] 1125975#0: *44007 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/db.inc.php on line 398" while reading response header from upstream, client: 10.47.44.201, server: z6.abc.xyz, request: "POST /zabbix.php?action=popup.import&output=ajax HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "z6.vivo.xyz", referrer: "http://z6.abc.xyz/templates.php"
------------------------------------------------------------------------------
Then, I try change the memory configure in /etc/php-fpm.d/zabbix.conf:
-------------------------------------------------------------------------------
php_value[memory_limit] = 1024M
php_value[post_max_size] = 64M
php_value[upload_max_filesize] = 20M
-------------------------------------------------------------------------------
restart services
- systemctl restart php-fpm nginx
But still not work........