Applicable to:
- Plesk for Linux
Symptoms
- Scheduled task fails with error:
PLESK_ERROR: PHP Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)
-
A scheduled task is created at Tools & Settings > Scheduled Tasks with Type Run a command. It should run PHP script and has no limits set with
memory_limit
directives:CONFIG_TEXT: /usr/bin/env php "/var/www/vhosts/example.com/httpdocs/index.php" "fc=module&module=patotalsortlist&controller=cron"
Cause
PHP memory limit is exceeded.
Resolution
-
Go to Tools & Settings > Scheduled Tasks and select the affected task
-
In the Command field, add the directive
memory_limit
with required value:CONFIG_TEXT: /usr/bin/env php "/var/www/vhosts/example.com/httpdocs/index.php" "fc=module&module=patotalsortlist&controller=cron" -d memory_limit=128M
Comments
0 comments
Please sign in to leave a comment.