Closed
Bug 582709
Opened 15 years ago
Closed 15 years ago
Why do we run max-requests=200 for wsgi procs?
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jbalogh, Assigned: oremj)
Details
WSGIDaemonProcess zamboni_prod processes=16 threads=1 maximum-requests=200 display-name=amo
I think I've asked about this before but I forgot the answer. Bugs never forget!
Comment 1•15 years ago
|
||
Weren't you the one telling me we do this so leaking memory gets recollected?
Comment 2•15 years ago
|
||
What's the default? If it's relatively high it might explain why product-details don't expire quickly for Input.
Assignee | ||
Comment 3•15 years ago
|
||
Because mod_wsgi/python leaks and I've seen these processes get to ~750M each. The default is to never expire. Would you like to set it higher/lower?
Reporter | ||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Because mod_wsgi/python leaks and I've seen these processes get to ~750M each.
> The default is to never expire. Would you like to set it higher/lower?
I'll try figuring out what's leaking someday. I'd like to move it higher since it's expensive to restart the wsgi process.
Updated•15 years ago
|
Assignee: server-ops → jeremy.orem+bugs
Comment 5•15 years ago
|
||
I'm starting to see issues with the generic cluster as well, because of these leaks. Boxes that are doing fine are suddenly in swap hell and have to sometimes be rebooted or in better cases, have their apache kicked before they can recover.
Comment 6•15 years ago
|
||
(In reply to comment #3)
> Because mod_wsgi/python leaks and I've seen these processes get to ~750M each.
> The default is to never expire. Would you like to set it higher/lower?
Is there a way to set this as a default? I think it makes sense to respawn our WSGI processes in general. Since an app must not rely on its process living forever, I think having a default maximum-requests value for all our Python apps of, say, 500, sounds like a good idea to me.
Objections?
Assignee | ||
Comment 7•15 years ago
|
||
Skimming through the docs it looks like this is only available in the WSGIDaemonProcess directive, so it's probably not possible to set a global default.
Assignee | ||
Comment 8•15 years ago
|
||
Looks like input currently has:
WSGIDaemonProcess input processes=8 threads=1 maximum-requests=200 display-name=input
Closing this bug. Let me know if there is something else to do.
Reporter | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•