I got the error Out of memory (allocated 116654080) (tried to allocate 32 bytes) when i import a xml file into wp. I had set 20000M into php.ini How to remove this error and import xml success.
The usual of 128M is enough to do almost anything. If you are getting this error, check for any infinite loops that can cause this or else, if you have 4 GB or 8 GB of ram, you are best to max out at around 1 GB for PHP. In my case, I would never do that, and stick with 128 MB, maybe move to 512 to see if that allows enough memory. if 512M doesn't allow your script to run, chances are the code is doing something funky and you have a loop that is never ending in there.