Re: Limit script memory usage !!

From: Date: Sat, 22 Dec 2001 06:44:28 +0000
Subject: Re: Limit script memory usage !!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78545@lists.php.net to get a copy of this message
Nicolas Guilhot wrote:
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.
Enable memory limit when you configure (--enable-memory-limit) Read php.ini-dist/recommended. -- Yasuo Ohgaki

« previous php.general (#78545) next »