Re: memory_get_usage with new Memory Manager

From: Date: Thu, 27 Jul 2006 17:17:35 +0000
Subject: Re: memory_get_usage with new Memory Manager
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-25017@lists.php.net to get a copy of this message
Hi Ilia, "Ilia Alshanetsky" <ilia@prohost.org> wrote in message news:70339B16-D50B-45B9-A55D-B58F9EEB679D@prohost.org... > Eh? When you set a limit what are you trying to do? From my > experience most of the time this setting is used by hosting providers > to restrict memory utilization of various PHP scripts to avoid out-of- > memory situations and system abuse. As such you'd want as accurate > measurement as possible including any overhead and what not, since it > is possible to use the overhead to exceed or in some cases even to > bypass the memory limit entirely. Yes, hosting providers would enable the memory limit. But who wants to use memory_get_[peak_]usage()? Not the hosting provider, but the application developer. - Ron

« previous php.internals (#25017) next »