You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2017/01/28 16:46:17 UTC
[Bug 60660] New: Memory Limit
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
Bug ID: 60660
Summary: Memory Limit
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: All
Status: NEW
Severity: major
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: roberto@spadim.com.br
Target Milestone: ---
Hi guys, could be possible implement a MAX MEMORY LIMIT in each WORKER?
for example... if one thread/process (thread/worker/etc...) consume more than
Xbytes after a request, close the worker and open a new one, it's very usefull
to avoid OOM
what i'm doing today is a php script executing this, if http apache process
memory usage is bigger than X MB execute a KILL command to graceful-restart the
process, this save me a lot of nights sleeping well
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60660] Memory Limit
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
--- Comment #3 from Reindl Harald <h....@thelounge.net> ---
these are mostly memleaks of modules like PHP and your kill command is far away
from graceful beause you interrupt the request in a hard way - in other words
what you want to see and do is nothing better as OOM killer which would kill
the right processes if other services like mysqld are configured with
OOMScoreAdjust=-1000
"MaxRequestsPerChild 50" would terminate each worker process *really* graceful
after it handeled 50 requests and so the memleaks can't grow that far
https://bugs.php.net/bug.php?id=73889 is one example of a memleak
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60660] Memory Limit
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
--- Comment #2 from Roberto Spadim <ro...@spadim.com.br> ---
others related comments about memory consume and apache
https://feeding.cloud.geek.nz/posts/putting-limit-on-apache-and-php-memory/
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60660] Memory Limit
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
--- Comment #1 from Roberto Spadim <ro...@spadim.com.br> ---
an example of "bandaid" solution:
http://askubuntu.com/questions/403222/kill-off-apache-processes-when-memory-usage-hits-90
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60660] Memory Limit
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |enhancement
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60660] Memory Limit
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60660
Szőgyényi Gábor <sz...@freemail.hu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |szg0000@freemail.hu
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org