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

Importing a cloned template (not in use) ends with PHP “Allowed memory size exhausted”

XMLWordPrintable

    • Sprint candidates

      Steps to reproduce:

      1. Clone “Zabbix server health by Zabbix agent active” to "test Zabbix server health by Zabbix agent active"
      2. Create 1000 hosts with linked template "test Zabbix server health by Zabbix agent active"
      3. Make a clone of template "test Zabbix server health by Zabbix agent active" to "test Zabbix server health by Zabbix agent active v2"
      4. Export "test Zabbix server health by Zabbix agent active v2" to yaml
      5. Delete template "test Zabbix server health by Zabbix agent active v2"
      6. Import yaml file

      Result:
      Web UI shows “Unexpected server error.”
      Nginx error:

      2025/06/13 14:34:48 [error] 1038#0: *2709 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/db.inc.php on line 418; PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/func.inc.php on line 1087; PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/classes/core/CEncryptedCookieSession.php on line 68; PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 338" while reading response header from upstream, client: 192.168.100.2, server: , request: "POST /zabbix.php?action=popup.import HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "192.168.100.21", referrer: "http://192.168.100.21/zabbix.php?action=template.list"

       

       

            aluchko Artem Luchko
            pwegrzyn Piotr Wegrzyn
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: