I keep getting the following message when running a script:
Out of memory (allocated 58458112) (tried to allocate 20 bytes)
When I change the memory_limit in the php.ini or put ini_set("memory_limit","1024M") at the top of the script, the message is the exact same, as though no additional memory was used to run the script. Is there something else I can do to allocate more memory (outside of optimizing the script… it’s Magento, which needs an overhaul, but it don’t have the expertise to fix it).
This is probably due to your ulimit settings. Run
ulimit -aand you will probably find something around that 58MB mark, i’m guessing 64000. You can change it with theulimitcommand, but will probably need to edit /etc/security/limits.conf to make it persist.