Limit script memory usage !!
| From: | Nicolas Guilhot | Date: | Thu, 20 Dec 2001 15:08:30 +0000 |
| Subject: | Limit script memory usage !! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78327@lists.php.net to get a copy of this message | ||
Hi all,
I need to limit the amount of memory that a script can use. Is there a
function that I can use to tell the script to die if its memory usage
becomes greater than $MAX_MEMORY ! Or maybe, I could use a cron job to
monitor processes and kill them if they become too big ?
Thanks for your help.
Nicolas