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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC