memory

memory

am 11.08.2010 17:33:17 von Samuel

--001636e8ff9d3f669b048d8df922
Content-Type: text/plain; charset=UTF-8

hello,
I'm upgrading my site and I have some question on memory.
I try to use Doctrine, models, and all this stuff.
By making some benchmark I noticed that a single request can take 4Mo of
memory.
Is that huge? Or is that acceptable in face of the beneficts of a good
architecture ?

I read that the default configuration allow 128Mo so 4Mo can seem
ridiculous, but I am not sure.

So if you can give me your feeling.

Thank you

--001636e8ff9d3f669b048d8df922--

Re: memory

am 12.08.2010 11:37:47 von Pierre Joye

hi,

On Wed, Aug 11, 2010 at 5:33 PM, samuel wrote:
> hello,
> I'm upgrading my site and I have some question on memory.
> I try to use Doctrine, models, and all this stuff.
> By making some benchmark I noticed that a single request can take 4Mo of
> memory.
> Is that huge? Or is that acceptable in face of the beneficts of a good
> architecture ?
>
> I read that the default configuration allow 128Mo so 4Mo can seem
> ridiculous, but I am not sure.

It is 128MB for everything, not only this single query.

But yes, apps working with data sets usually need a lot of memory, so
4MB is rather small.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: memory

am 12.08.2010 11:42:37 von Samuel

--0016364ed12cf26891048d9d30b0
Content-Type: text/plain; charset=UTF-8

Ok,
thank you

2010/8/12 Pierre Joye

> hi,
>
> On Wed, Aug 11, 2010 at 5:33 PM, samuel wrote:
> > hello,
> > I'm upgrading my site and I have some question on memory.
> > I try to use Doctrine, models, and all this stuff.
> > By making some benchmark I noticed that a single request can take 4Mo of
> > memory.
> > Is that huge? Or is that acceptable in face of the beneficts of a good
> > architecture ?
> >
> > I read that the default configuration allow 128Mo so 4Mo can seem
> > ridiculous, but I am not sure.
>
> It is 128MB for everything, not only this single query.
>
> But yes, apps working with data sets usually need a lot of memory, so
> 4MB is rather small.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>

--0016364ed12cf26891048d9d30b0--