Re: Memory consumption / usage
| From: | Joerg Behrens | Date: | Thu, 25 Oct 2001 10:17:00 +0000 |
| Subject: | Re: Memory consumption / usage | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68993@lists.php.net to get a copy of this message | ||
Moin,
----- Original Message -----
From: "Ulf Wendel" <uw@netuse.de>
To: <php-dev@lists.php.net>
Sent: Thursday, October 25, 2001 11:48 AM
Subject: [PHP-DEV] Memory consumption / usage
> Hi,
>
> is there a way to monitor the memory usage of a php script and
> especially the size of it's variables?
Thies added a patch long time ago to log the memory usage of a php script
into the apache log files.
When using the php cvs version compiling with '--enable-memory-limit' .
Modify the logformat in the httpd.conf.
#Example
LogFormat "%h %{mod_php_memory_usage}n %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" combined
Entrys looks like...
192.168.153.1 2326064 - - [15/Aug/2001:15:58:56 ....
with best regards
Joerg Behrens
--
TakeNet GmbH Mobil: 0171/60 57 963
D-97080 Wuerzburg Tel: +49 931 903-2243
Alfred-Nobel-Straße 20 Fax: +49 931 903-3025