Re: [atom-users] Delete drafts

9 views
Skip to first unread message

Dan Gillean

unread,
Aug 24, 2023, 10:40:24 AM8/24/23
to ica-ato...@googlegroups.com
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!

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


On Thu, Aug 24, 2023 at 10:26 AM 'Pedro Marcos Abreu Bernardo' via AtoM Users <ica-ato...@googlegroups.com> wrote:
Hi everyone,

I was trying to delete all drafts from our test environment using the "php symfony tools:delete-drafts" command via command-line. It seemed to be working, but after a few minutes a message showed up: "PHP Fatal error:  Allowed memory size of 629145600 bytes exhausted (tried to allocate 266240 bytes) in /usr/share/nginx/atom/lib/QubitQuery.class.php on line 308".

Does anyone have any idea how to solve it?

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/e8a82aaf-91e2-428b-9ed0-99c7b089cf56n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages