This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » Memory problems

Memory problems

Memory problems

Wednesday 05 June 2013 5:20:42 pm - 6 replies

Hi guys !

I'm currently developping a website using eZ 2013.4.

On the Landing Page, I have an eZFlow Layout, composed of some blocks. These blocks are rendered via controllers (mostly for queries) which calls twig templates to render block items (even in the case where the user didn't put any item in the block, I query some).

The problem is, i suspect twig to eat all my memory. I quickly hit my php memory limit (which is 256M), by disabling some fetchs, it looks like one query+render uses about 20Mb, which seems a lot to me.

This only occurs in dev mode thought, when I switch to prod, the website is very quick and nothing breaks. So what causes this difference, and how can I avoid using that much memory in dev please, if anybody has an idea ?

Thanks !

Thursday 06 June 2013 9:59:43 am

Not that I like tools which eat memory for breakfast, but why is it a problem if you're on a DEV environment?

Thursday 06 June 2013 10:18:28 am

I just wondered if this was a normal behaviour, because it feels weird when the website breaks because of memory when the limit is set at 256M.

I also wondered if this memory consumption was due to a wrong use of the queries.

But you are right, It's not that big of a problem as long as performances are not impacted in prod, I was just afraid at some point it might be felt there too happy.gif Emoticon

Thursday 06 June 2013 11:11:00 am

Hi Pierre,

Just a word of warning: eZ Publish uses a LOT of memory.

I often in development push all my php.ini settings up tripple the defaults.

Like memory limit, I push that to 500mb regularly to avoid any problems.

I hope this helps ...


Theme: Extremophile Sole & Goldpanda w/ Robin Walker

Thursday 13 June 2013 10:10:48 am

Hi guys !

Just to let you know that after completing the main page of my website, my memory limit (which was at 1Gb) was not sufficient. So I raised the value (again) ... 

From the profiler statistics, I made about 40 queries, and I have 2589 items in the stash's query record.

The profiler also tells me I used 1173.5 Mb of memory.

The main problem now is that half of the time, the page just won't load, I get an error saying the server returned an empty response.

And again, when I access the prod version, nothing to declare, everything works quick and fine.

I'm kind of out of options here, I can't see what causes this, or how to optimize the thing =/

Thursday 13 June 2013 11:31:34 am

did you try to disable the in-memory cache of stash?

Friday 14 June 2013 4:31:52 pm

I just tried, after some tests, it looks like it doesn't change a thing =(


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from