Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory error #9

Open
solene2a opened this issue Feb 4, 2013 · 2 comments
Open

Out of memory error #9

solene2a opened this issue Feb 4, 2013 · 2 comments

Comments

@solene2a
Copy link

solene2a commented Feb 4, 2013

Error logged in /var/log/sqliimport-error.log during the import :

"Allowed memory size of 2621440000 bytes exhausted (tried to allocate 1966080 bytes) at /data/http/[my_site]/var/ezflow_site/cache/template/compiled/window_controls-edb5271eef31aab2afce293f8224ba47.php (line 1224)"

with the memory_limit=2500Mo in php.ini !

Solved by disabled the PreviewCache...

@lolautruche
Copy link
Owner

@Solenea Please explain how you get to this (from the email thread we had together)

@solene2a
Copy link
Author

solene2a commented Feb 4, 2013

OK
My website is on a VM.
The import is started every night via the cronjob sqliimport_run. I have an error like this in /var/log/sqliimport-error.log :

"Allowed memory size of 2621440000 bytes exhausted (tried to allocate 1966080 bytes) at /data/http/[my_site]/var/ezflow_site/cache/template/compiled/window_controls-edb5271eef31aab2afce293f8224ba47.php (line 1224)"

I increased the memory_limit parameter to 2500Mo in the php.ini.
Note that I use the SQLIContent API to develop my own imports.
I added eZContentObject::clearCache(array($content->attribute('id'))); at the end of my function process (just before the unset($content)).
Finally I tested the cache and I realized the imports succeed when PreviewCache is disabled in the site.ini...

It would be interesting to disable the cache during the import...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants