Hi,
I received an email stating that the cron execution was automatically terminated (took longer than maximum execution time).
After looking at the cron logs, I saw the cron log stopped at this error:
VP Learning Hub
Executing backup
Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 71 bytes) in /var/www/html/totaralms/lib/adodb/adodb.inc.php on line 3008
This backup is for the Sitewide course (front page), which in the course backup logs, doesn't pass this stage:
calculating users
There are 20,000 users synced to our site and the default role for the front page is guest.
I checked the memory limit set in the php.ini file, which is currently set as: 128mb - too low considering 201326592 bytes = 192mb...
Our site also has the Server > Performance > Extra PHP memory limit set to 512M.
Is this extra memory limit utilised for the scheduled backup function of the cron?
I also noticed that in the /admin/cron.php script, line 499 appears to have a hard coded memory limit:
@raise_memory_limit('192M');
Should the memory limit be increased? If so where is the optimal place to increase it?
-Ira