Re: Re: cvs: php-src(PHP_5_2) / php.ini-dist php.ini-recommended
| From: | Richard Quadling | Date: | Fri, 22 Dec 2006 09:29:26 +0000 |
| Subject: | Re: Re: cvs: php-src(PHP_5_2) / php.ini-dist php.ini-recommended | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27175@lists.php.net to get a copy of this message | ||
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 <derick@php.net> wrote:
On Thu, 21 Dec 2006, Hannes Magnusson wrote: On 12/21/06, Edin Kadribasic <edink@emini.dk> wrote:-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"Hannes Magnusson wrote: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.phpAnd 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.