Cron is falling at the radioactivity_cron() hook. When I run the cron, getting the different php errors on each cron run:

  1. Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /docroot/modules/search_api/src/Utility/Utility.php on line 30
  2. 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
  3. Allowed memory size of 402653184 bytes exhausted (tried to allocate 98 bytes) in docroot/core/lib/Drupal/Core/Database/Statement.php on line 59
  4. Allowed memory size of 402653184 bytes exhausted (tried to allocate 98 bytes) in /docroot/core/lib/Drupal/Core/Database/Statement.php on line 59
  5. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rahul.rahangdale created an issue. See original summary.

Sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

The 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?

Sutharsan’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
7.66 KB

This 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

Sutharsan’s picture

FileSize
9.43 KB

Ignore the previous patch. New files were not included.

Marty2081’s picture

@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.

  • Sutharsan committed 5066a80 on 8.x-3.x
    Issue #2931957 by Sutharsan: Allowed memory size of X bytes exhausted (...
Sutharsan’s picture

Status: Needs review » Fixed

Thanks for testing. Patch now committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.