Re: memory usage
| From: | Adam Maccabee Trachtenberg | Date: | Fri, 31 Jan 2003 21:16:40 +0000 |
| Subject: | Re: memory usage | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93882@lists.php.net to get a copy of this message | ||
On 31 Jan 2003, Walt Boring wrote:
> Is there a way for me to log the peak memory usage for a php script for
> php 4.3.0 ?
If PHP is built with the --enable-memory-limit configuration option, it
stores the peak memory usage of each request in a note called
mod_php_memory_usage. Add the memory usage information to a LogFormat
with:
%{mod_php_memory_usage}n
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!