|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-08-27 12:52 UTC] rainer-phpbugs at 7val dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-27 14:41 UTC]
-Status: Open +Status: Wont fix
 [2012-09-27 14:41 UTC]
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
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 06:05:54 2023 UTC