Re: One suggestion to PHP-FPM

From: Date: Thu, 15 Apr 2010 08:36:44 +0000
Subject: Re: One suggestion to PHP-FPM
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-47957@lists.php.net to get a copy of this message
On 15.04.2010 12:23, Jérôme Loyet wrote:
> 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

Adding this to FPM won't help anyway - FPM doesn't use threads.

-- 
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP


Thread (49 messages)

« previous php.internals (#47957) next »