3 ms·
Admittedly, the "restart server process after N connections" method of dealing with memory leaks is not specific to just PHP. It's also present in Apache, and
by scott_karana 12y ago
Admittedly, the "restart server process after N connections" method of dealing with memory leaks is not specific to just PHP.
It's also present in Apache, and thus mod_rails and mod_wsgi, by default[1], is an option in Gunicorn[2], and a gem is also available to provide the same in Unicorn.[3]
1 http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequ...
2 http://gunicorn-docs.readthedocs.org/en/latest/settings.html#max-requests http://gunicorn-docs.readthedocs.org/en/latest/settings.html...
3 https://github.com/kzk/unicorn-worker-killer https://github.com/kzk/unicorn-worker-killer