Zend php memory memory_limit

Posted by RepDetec on Stack Overflow See other posts from Stack Overflow or by RepDetec
Published on 2010-03-05T01:33:42Z Indexed on 2010/03/23 2:01 UTC
Read the original article Hit count: 428

Filed under:
|
|

All,

I am working on a Zend Framework based web application. We keep encountering out of memory errors on our dev server:

Allowed memory size of XXXX bytes exhausted (tried YYYY...

We keep increasing memory_limit in php.ini, but it is now up over 1000 megs. What is a normal memory_limit value? What are the usual suspects in php/Zend for running out of memory? We are using the Propel ORM.

Thanks for all of the help!

Update I cannot reproduce this error in my windows environment. If I set memory_limit low (say 16M), I get the same error, but the "tried to allocate" amount is always something reasonable. For example: (tried to allocate 13344 bytes) If I set the memory very low on the (Fedora 9) server (such as 16M), I get the same thing. consistent, reasonable out of memory errors. However, even when the memory limit is set very high on our server (128M, for example), maybe once a week, I will get an crazy huge memory error: (tried to allocate 1846026201 bytes). I don't know if that might shed any more light onto what is going on. We are using propel 1.5. It sounds like the actual release is going to come out later this month, but it doesn't look like anyone else is having this problem with it anyway. I don't know that Propel is the problem. We are using Zend Server with php 5.2 on the Linux box, and 5.3 locally.

Any more ideas? I have a ticket out to get Xdebug installed on the Linux box.

Thanks,

-rep

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework