Moin,

----- Original Message -----
From: "Ulf Wendel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to