Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
4.0.7, 4.1.4, 4.2.0, 4.3.0
-
None
Description
When notification processing, launched with cronjob "frequent" has a large amount of items to process, it always fails with an exhausted memory fatal error since ALL entries are fetched in eznotificationevent table
Here's the Xdebug back trace :
Starting notification event processing PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2 bytes) in /home/claforet/.workspace/Cartier Trunk/lib/ezdb/classes/ezmysqlidb.php on line 517 PHP Stack trace: PHP 1. {main}() /home/claforet/.workspace/Cartier Trunk/runcronjobs.php:0 PHP 2. eZRunCronjobs::runScript() /home/claforet/.workspace/Cartier Trunk/runcronjobs.php:350 PHP 3. include() /home/claforet/.workspace/Cartier Trunk/kernel/classes/ezruncronjobs.php:74 PHP 4. eZNotificationEventFilter::process() /home/claforet/.workspace/Cartier Trunk/cronjobs/notification.php:38 PHP 5. eZNotificationEvent::fetchUnhandledList() /home/claforet/.workspace/Cartier Trunk/kernel/classes/notification/eznotificationeventfilter.php:52 PHP 6. eZPersistentObject::fetchObjectList() /home/claforet/.workspace/Cartier Trunk/kernel/classes/notification/eznotificationevent.php:180 PHP 7. eZMySQLiDB->arrayQuery() /home/claforet/.workspace/Cartier Trunk/kernel/classes/ezpersistentobject.php:877 PHP 8. mysqli_fetch_array() /home/claforet/.workspace/Cartier Trunk/lib/ezdb/classes/ezmysqlidb.php:517 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.