Determine memory used from script
| From: | Shawn McKenzie | Date: | Thu, 05 Jun 2003 12:45:50 +0000 |
| Subject: | Determine memory used from script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150344@lists.php.net to get a copy of this message | ||
Is there a way to determine the amount of memory that a script is consuming
at a certain point? Maybe a function that would return this?
The reason is, I get this:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 46080 bytes) in /home/httpd/vhosts/aaa/httpdocs/bbb/ccc/script.php
on line 20
I know why I get the error but would like to know when and why my script is
consuming so much.
Thanks!
Shawn