I am using the API to create hosts on my test zabbix server. I can successfully add eight hosts without any problems, that is until I try to add a templateid tag. With the templateId in place I am getting the following error:
500 Internal Server Error (RestClient::InternalServerError)
When I look at my apache web server logs I see the following:
[Wed Oct 24 17:35:21 2012] [error] [client 192.168.69.38] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) in /var/www/zabbix2/include/classes/debug/CProfiler.php on line 232
I have tried to increase the memory_limit alloted to PHP and only a slight change in the logs:
[Mon Oct 22 11:49:40 2012] [error] [client 192.168.69.38] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/zabbix2/include/classes/debug/CProfiler.php on line 232
If I remove the templateid tag everything works as expected.
- duplicates
-
ZBX-5400 PHP memory leak while importing(update) a template
- Closed