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

PHP memory leak while importing(update) a template

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.2
    • Frontend (F)
    • None

      I tried to update a existing template (linked to ~ 200host) and it fails.

      The apache2 says:

      [Thu Aug 02 10:59:23 2012] [error] [client 172.24.52.182] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 71 bytes) in /data/zabbix/html/include/classes/debug/CProfiler.php on line 232, referer: http://zabbix-br.isc.ejpd.admin.ch/conf.import.php?rules_preset=template&sid=91ba1cbcbdae0be1

      I've change in steps from the initial 12 to 256, 512,1024 and finally 2048 and there it worked.

      Seems a lot of memory for me for this task...

      Attached you'll find my little template

        1. host_import_splitter_1.8.pl
          2 kB
          Roderick Groeneveld
        2. host_import_splitter_2.0.pl
          2 kB
          Roderick Groeneveld
        3. zbx_brocade_basic_templates.xml
          32 kB
          Marc Herren

            iivs Ivo Kurzemnieks
            marc.herren Marc Herren
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: