[ZBX-7205] latest data page is blank - PHP Fatal error on allowed memory Created: 2013 Oct 24 Updated: 2019 Dec 10 |
|
Status: | Open |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.1.8 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Kyle | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 7 |
Labels: | apache, memory, php | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
PHP 5.4.6-1ubuntu1.4 memory_limit is currently at 756M. |
Issue Links: |
|
Description |
I am experiencing an issue where when I click on "latest data" tab and I am getting a blank page. Looking at the apache log I see: PHP Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 21 bytes) in /opt/zabbix-web/include/db.inc.php on line 616, referer: I have tried increasing the php memory to several Gigs but it just seems to continue to eat it all up and then crash. Appreciate the assistance. |
Comments |
Comment by richlv [ 2013 Oct 26 ] |
how many hosts, how many items do you have ? also, is debug mode enabled ? and maybe you can try current trunk instead, there have been some improvements recently (after 2.1.8) |
Comment by Kyle [ 2013 Oct 30 ] |
Zabbix server is running Yes localhost:10051 Yes when drop down first entry is set to none it loads the page. I do not have debug mode enabled. |
Comment by Kyle [ 2013 Oct 30 ] |
Upgraded to latest 2.1.9 release and still same issue: Apache log shows: [Wed Oct 30 15:55:18 2013] [error] [client x.x.x.x] PHP Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 32 bytes) in /opt/zabbix-web/include/db.inc.php on line 616, referer: http://x.x.x.x/zabbix/adm.gui.php |
Comment by Kyle [ 2013 Oct 30 ] |
Also when I set the "drop down first entry" to none it seems to remove the "all" option completely from all drop down menus? Is this by design? This workaround would potentially work if I still had the option to choose all on the monitoring->triggers page to be able to view all events. |
Comment by richlv [ 2014 Jan 08 ] |
this might be caused by |
Comment by Alexander [ 2014 Jan 20 ] |
I see the same (all of a sudden, it worked just today in the morning) on 2.2.1 with just 133 hosts and 11299 items. What's that "drop down first entry" option, where do I set it? And the PHP files where it fails are: zabbix/include/classes/class.ctag.php and /zabbix/include/classes/class.crow.php (this one listed just once so far) |
Comment by Raymond Kuiper [ 2014 Apr 14 ] |
@ Alexander, the option is in the in the general GUI options under Administration. I'm running into this issue as well. Setting to 'none' as first entry does make latest data accessible for me, but this also affects the way active triggers are shown in the trigger overview screen and that breaks with the current monitoring process within our company. Zabbix 2.2.3, 53 active hosts, 10705 active items. I've changed memory limit in PHP from 128 to 256MB, that doesn't seem to help. |
Comment by Raymond Kuiper [ 2014 Apr 14 ] |
See also |
Comment by Pavel [ 2014 May 23 ] |
Upgrade notes for zabbix 2.2.0: |
Comment by Anton Samets [ 2014 May 23 ] |
Plus one for make this feature configurable. On a lot of data it's really annoying... |
Comment by Lukas Macura [ 2014 Jun 03 ] |
We monitor lot of cisco switches and Zabbix is unusable when clicking into "Latest Data". There are hundred of ports on one switch. Problem is not in PHP but in postgresql. It dies on "out of memory" due to unlimited look into history. This is becouse we use partitions in postgresql. Please help us to solve this. All other web pages are OK, but looking into latest data is unpossible. Even when looking into one switch, it can kill postgresql. It is enough to put limitation into WHERE to filter only latest partition which will reduce memory cost greatly.. |
Comment by richlv [ 2014 Jun 20 ] |
does |
Comment by Brett Anspach [ 2014 Jun 23 ] |
I am experiencing the same issue. 1000 hosts, 600 nvps. |
Comment by Marc [ 2014 Jun 23 ] |
|
Comment by Blaine Schmidt [ 2014 Dec 02 ] |
I ran some timings, with the following assumptions: 1. The template that I apply to each host perform LLD and ends up creating about 600 items per host The first column represents the number of hosts with the template applied. The second column represents the number of items that would be downloaded and displayed, if all of the + marks were expanded. The third column represents the amount of time that it took to display the latest.php page, after having previously applied a filter of "Host group" and "Application"... 02 hosts / 1200 / 00-01 second ...and the blank page starts appearing...and once the blank page appears, even unlinking and clearing the items from the individual hosts does not make the latest.php page display correctly. The above appears to show the issue as linear in nature, as doubled amount doubles the time required to display. But is it due to the amount of data being transferred, or something else completely? Addendum: After inserting "ini_set('memory_limit', '1G');" the page loads correctly. Obviously, consuming that much memory is not reasonable... +1 to the idea of making whether to load all items (whether the + is expanded or not) configurable... |
Comment by Yves Vogl [ 2016 Mar 22 ] |
We encountered the same issue in Zabbix 3 (# If you raise the memory limit to 1G and above you'll possibly hit the max_execution_time limit next. |
Comment by JamesH [ 2016 Apr 28 ] |
I'm experiencing this issue in 2.4.1 |
Comment by Andrey Melnikov [ 2016 Apr 28 ] |
Install Xdebug with https://github.com/splitbrain/xdebug-trace-tree and show result. |
Comment by ZhiBang [ 2017 Jul 04 ] |
I encountered the same problem, zabbix version is 3.0.9. |