php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62949 Automatically terminate php-fpm children that exceed a memory usage limit
Submitted: 2012-08-27 12:52 UTC Modified: 2012-09-27 15:03 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rainer-phpbugs at 7val dot com Assigned:
Status: Wont fix Package: FPM related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rainer-phpbugs at 7val dot com
New email:
PHP Version: OS:

 

 [2012-08-27 12:52 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-27 14:41 UTC] fat@php.net
-Status: Open +Status: Wont fix
 [2012-09-27 14:41 UTC] 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-09-27 15:03 UTC] rainer-phpbugs at 7val dot com
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
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC