Allowed memory size exhausted in hookmanager.class.php
-
We are running FOG 1.5.7 on several machines.
Recently, we received an identical error on all instances at the same time:
Rule: 31420 (level 5) -> 'PHP Fatal error.' Feb 28 14:38:53 myinstance FOGMulticastManager[1108]: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes) in /var/www/fog/lib/fog/hookmanager.class.php on line 54
which refers to this line:
public function processEvent($event, $arguments = array()) { $this->events[] = $event;
We haven’t seen this error in relation with hookmanager before, and I have found nothing on it here in the forum.
-
@abulhol I have had a look at the code but we lack important information to know why this has happened. Let’s try to get to it. Did this happen only once so far or do you see this often? E.g. every time you run a multicast task? Has this server been running for a long time without restarting services or the whole server?
-
We actually don’t run any multicast tasks at all.
The error happens in seemingly regular intervals on every instance of FOG, about every 11 days.
It also happens on an installation of FOG 1.5.5.
We actually do start and stop Apache, DHCP and other services related to FOG from time to time, but the server (Ubuntu 18.04.4 LTS) itself is running continuously. -
@abulhol said in Allowed memory size exhausted in hookmanager.class.php:
Feb 28 14:38:53 myinstance FOGMulticastManager[1108]: PHP Fatal error:
Do you see it happening with FOGMulticastManager always or does it happen with one of the other FOG… services as well? I guess it’s only that one because it has the lowest sleep time and will loop the most therefore.
I’ll take a close look at this over the weekend.
-
@Sebastian-Roth it only happens with FOGMulticastManager, and we see it in regular intervals of ~11 days as described.
Thanks for investigating! -
@abulhol This issue should be fixed in latest
dev-branch
.