memory limit exhausted when trying to bootstap a module

3 messages Options
Embed this post
Permalink
Matt Cockayne

memory limit exhausted when trying to bootstap a module

Reply Threaded More More options
Print post
Permalink
Hi.
I'm trying to bootstrap a module using the modules resource. However when ever I try I hit my memory limit. I have increased the limit to in excess of 500M and still getting problems.

This happens even whenthe module I'm trying to load is just outputting some html.

As soon as I disable the modules resource everything is fine.

Has anyone else had these problems.  Or can someone point me in the right direction of how to fix this.

I'm using v1.9.4 of the framework and am using the instructions in the ref guide
Hector Virgen

Re: memory limit exhausted when trying to bootstap a module

Reply Threaded More More options
Print post
Permalink
What is your memory limit set to? PHP's default is set terribly low (around 8MB I believe).

I'm not sure what the recommended memory limit is for a basic ZF application but I've had good luck with 64MB and 128MB.

--
Hector


On Fri, Oct 30, 2009 at 2:51 PM, Matt Cockayne <[hidden email]> wrote:

Hi.
I'm trying to bootstrap a module using the modules resource. However when
ever I try I hit my memory limit. I have increased the limit to in excess of
500M and still getting problems.

This happens even whenthe module I'm trying to load is just outputting some
html.

As soon as I disable the modules resource everything is fine.

Has anyone else had these problems.  Or can someone point me in the right
direction of how to fix this.

I'm using v1.9.4 of the framework and am using the instructions in the ref
guide
--
View this message in context: http://old.nabble.com/memory-limit-exhausted-when-trying-to-bootstap-a-module-tp26137402p26137402.html
Sent from the Zend Framework mailing list archive at Nabble.com.


till

Re: memory limit exhausted when trying to bootstap a module

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Cockayne
On Fri, Oct 30, 2009 at 10:51 PM, Matt Cockayne
<[hidden email]> wrote:

>
> Hi.
> I'm trying to bootstrap a module using the modules resource. However when
> ever I try I hit my memory limit. I have increased the limit to in excess of
> 500M and still getting problems.
>
> This happens even whenthe module I'm trying to load is just outputting some
> html.
>
> As soon as I disable the modules resource everything is fine.
>
> Has anyone else had these problems.  Or can someone point me in the right
> direction of how to fix this.
>
> I'm using v1.9.4 of the framework and am using the instructions in the ref
> guide

I'd suggest you install Xdebug and enable the profiler to track memory
usage and execution time. Otherwise it's hard to troubleshoot your
issue. Xdebug is also useful since it provides a full stack trace.

I know that we are running with 128 MB currently and it's going pretty
well. I can't imagine you would really need 500 MB to satisfy your
app. I'm (only) guessing, but maybe you caught a loop somewhere or a
giant result set, or something similar.

Till