Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Cron is falling at the radioactivity_cron() hook. When I run the cron, getting the different php errors on each cron run:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /docroot/modules/search_api/src/Utility/Utility.php on line 30
Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /docroot/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php on line 83
Allowed memory size of 402653184 bytes exhausted (tried to allocate 98 bytes) in docroot/core/lib/Drupal/Core/Database/Statement.php on line 59
Allowed memory size of 402653184 bytes exhausted (tried to allocate 98 bytes) in /docroot/core/lib/Drupal/Core/Database/Statement.php on line 59
Allowed memory size of 268435456 bytes exhausted (tried to allocate 57 bytes) in docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 136
When I uninstalled the module and ran the cron, the cron is running successfully. Also, none of these errors is occurring.
Comment | File | Size | Author |
---|---|---|---|
#4 | radioactivity-memory-exhausted-2931957-4.patch | 9.43 KB | Sutharsan |
Comments
Comment #2
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThe radioactivity cron does not use batch processing. Please give some more information to help you and fix the problem.
What is the (approximate) number of @count in you log (from cron runs that _did_ run successfully):
- Processed @count entities.
- Processed @count incidents.
How often does cron run?
Comment #3
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThis patch should fix memory problems.
Todo: Add some description in README about cron. What happens at cron and about cron frequency in relation to granularity
Comment #4
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedIgnore the previous patch. New files were not included.
Comment #5
Marty2081 CreditAttribution: Marty2081 at LimoenGroen commented@Sutharsan: I tested your patch on the latest dev version and the incidents are correctly processed on cron resulting in the correct energy changes for entities.
Comment #7
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThanks for testing. Patch now committed.