Re: One suggestion to PHP-FPM
| From: | Jérôme Loyet | Date: | Thu, 15 Apr 2010 08:23:39 +0000 |
| Subject: | Re: One suggestion to PHP-FPM | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47956@lists.php.net to get a copy of this message | ||
2010/4/15 Antony Dovgal <tony@daylessday.org>:
> On 06.04.2010 11:11, 滕路遥 wrote:
>> So I suggest that if we could add a config option to PHP-FPM, so that
>> PHP-FPM could just kill a PHP process if it consumes too much memory
>> (say more than 256M).
>
> I personally don't think this belongs to any SAPI.
> How about adding another ini option to PECL/memtrack to not just throw a warning,
> but terminate the process when it hits some limit?
In fork processes it could be great but when dealing with threads it won't work