Hi there,
First, if your environment has enough overall memory, then you can try running the task without a memory limit, like so:
- php memory_limit=-1 symfony tools:delete-drafts
If needed (i.e. if the task still fails, you could increase the memory allocated to your AtoM PHP pool, by altering the configuration file we create during installation, here:
For example, try increasing the
php_admin_value[memory_limit] from
512M to
1024M. Don't forget to
restart PHP-FPM afterwards - for PHP 7.4, use:
- sudo systemctl restart php7.4-fpm
Now you can try running the task again - possibly with the memory_limit=-1 parameter.
If that still doesn't work, then perhaps the PHP pool limit needs to be set higher - though your installation overall may require more memory allocated. Per the technical requirements, we recommend 7GB of RAM or more for a production-ready system:
Hope that helps!