Ad Widget

Collapse

Zabbix 2.0.5 PHP Memory Error on API Host Create

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geist
    Junior Member
    • Jun 2013
    • 1

    #1

    Zabbix 2.0.5 PHP Memory Error on API Host Create

    I wanted to post here before I add a ticket. Maybe I missed something in the documentation.

    I'm writing an auto-population script based upon autoscaling groups in amazon. When call host.create via the API I get a 500 error back. Attempts to add > 5 hosts fails with the 500. 4 hosts at once succeed. Nothing significant in the zabbix_server logs. But in the httpd error.log I see:

    Code:
    [Tue Jun 11 15:20:44 2013] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /usr/local/share/zabbix/include/classes/debug/CProfiler.php on line 232
    [Tue Jun 11 15:21:14 2013] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /usr/local/share/zabbix/include/classes/debug/CProfiler.php on line 232
    [Tue Jun 11 15:21:44 2013] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 76 bytes) in /usr/local/share/zabbix/include/classes/debug/CProfiler.php on line 232
    Googling suggests upping the php 'memory_limit' (was at the default of 128M). So I tried it out, removing all restrictions with a -1. And it succeeds. Smells suspicious that I'd need more then 128M. Possible memory leak?

    What says you guys? Ticket material?
Working...