Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83107 invoked by uid 1010); 27 Jul 2006 17:19:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83092 invoked from network); 27 Jul 2006 17:19:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2006 17:19:38 -0000 X-Host-Fingerprint: 83.160.219.156 korving.demon.nl Received: from ([83.160.219.156:4569] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id EB/67-23194-9A5F8C44 for ; Thu, 27 Jul 2006 13:19:38 -0400 Message-ID: To: internals@lists.php.net References: <00d601c6af9d$c18f2d30$0201a8c0@pc1> <003701c6afb1$81b87720$6e02a8c0@thinkpad> <44C6205F.4090808@php.net> <00ed01c6b163$c3d40ad0$0201a8c0@pc1> <44C8B9B8.5030108@toggg.com> <70339B16-D50B-45B9-A55D-B58F9EEB679D@prohost.org> Date: Thu, 27 Jul 2006 19:17:35 +0200 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 83.160.219.156 Subject: Re: [PHP-DEV] memory_get_usage with new Memory Manager From: r.korving@xit.nl ("Ron Korving") Hi Ilia, "Ilia Alshanetsky" 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