Req #62949 [Wfx]: Automatically terminate php-fpm children that exceed a memory usage limit
| From: | rainer-phpbugs at 7val dot com | Date: | Thu, 27 Sep 2012 15:03:43 +0000 |
| Subject: | Req #62949 [Wfx]: Automatically terminate php-fpm children that exceed a memory usage limit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173742@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62949&edit=1
ID: 62949
User updated by: rainer-phpbugs at 7val dot com
Reported by: rainer-phpbugs at 7val dot com
Summary: Automatically terminate php-fpm children that exceed
a memory usage limit
Status: Wont fix
Type: Feature/Change Request
Package: FPM related
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
There's a nice (but admittedly non-trivial, and for the current resident set size, not elegant)
example how to measure memory usage at
http://nadeausoftware.com/articles/2012/07/c_c_tip_how_get_process_resident_set_size_physical_memory_use
Previous Comments:
------------------------------------------------------------------------
[2012-09-27 14:41:40] fat@php.net
this have been discusses many times and it's not possible as it's very complicated
to mesure the memory consume by one process: memory from external libraries, if
children have been forked, ...
the only thing we have is the memory_limit in php which only mesure the memory
allocated from PHP itself.
------------------------------------------------------------------------
[2012-08-27 12:52:24] rainer-phpbugs at 7val dot com
Description:
------------
As an alternative fix for the bloated php-fpm children descibed in #62948, it would be nice to be
able to configure a memory limit. If a php-fpm process exceeds this limit after a request has
finished processing, the child is terminated automatically.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62949&edit=1