1 - Do the memory_get_usage() and memory_get_peak_usage() now work in Windows?

2 - If you temporarily set the limit high, you could use a
register_shutdown_function to record the peak memory usage for your
scripts over time, and then set the level at a more reasonably if you
think 128M is too high (or too low if you used BIG CLI scripts).



On 21/12/06, Derick Rethans <[EMAIL PROTECTED]> wrote:
On Thu, 21 Dec 2006, Hannes Magnusson wrote:

> On 12/21/06, Edin Kadribasic <[EMAIL PROTECTED]> wrote:
> > Hannes Magnusson wrote:
> > > And I sure am one of them.
> > > We are talking about _default_ settings, not edge cases. 128M is
> > > insane _default_ setting.
> >
> > Having in mind how short-lived most of the PHP processes are, I see
> > really nothing wrong with setting a default limit to 128 MB, and I
> > definitely don't see anything "insane" about it.
>
> How fast are you expecting to use up 128MB exactly and how?

It goes pretty fast if you do some command line data munging. As memory
limit is now enabled by default we should atleast have some usefull
default for this setting.

regards,
Derick

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php




--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to