I'm getting the following error message whilst trying to do an import using the import/export extension:
Code: Select all
Fatal error: Out of memory (allocated 92274688) (tried to allocate 13610417 bytes) in .../vqmod/vqmod.php on line 389
http://www.opencart.com/index.php?route ... ort%20tool
The file is not particularly big (about 2MB) and is no different to our normaly imports.
A couple of months ago I got the "Allowed memory size of...bytes exhausted..." error message and increased the PHP memory limit from 64M to 128M using the two php.ini files in the root and /admin folder. This worked until today when I got the above message. I tried increasing the PHP memory limit to 512M, then 1024M but this did not work.
I had a look at 1and1 and apparently they have a memory limit of 80MB on their Business packages, link:
http://www.1and1.co.uk/details-performance
This (roughly) makes sense as 92274688 = 88MB. I've contacted 1and1 to see if there is anyway I can get around this without having to get a dedicated server.
What I don't understand is why the memory is not being freed up? Does the memory decrease slightly with each import until it runs out? I doubt this is how it's supposed to work.
My understanding is that this memory limit is used to determine how much memory is allocated to PHP functions when they are executed. Surely once they have finished executing the memory being used will be freed?
Any help or further clarification/explanation on this would be very much appreicated. I'm just trying to get my head round why exactly the PHP memory limit is running out.
Thanks,
Mike