Closed Bug 347845 Opened 20 years ago Closed 19 years ago

mod_perl makes Apache use so much RAM that 15 concurrent users cause swap thrashing

Categories

(Bugzilla :: Bugzilla-General, defect)

2.23
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 370010

People

(Reporter: mkanat, Unassigned)

Details

(Keywords: perf)

Using my load-testing tool from bug 347520, I discovered that once you get up to a very small number of concurrent users for Bugzilla under mod_perl, on a machine with 512MB of RAM, the machine starts swapping and Bugzilla slows down by a factor of 10. This is basically because on average, our httpd children each use 18MB of RAM, and they get up to 23MB or higher individually. For the 15 concurrent users, Apache created about 15 httpd children. Having 15 httpd children is a pretty common thing, even for a small or medium-sized installation. Basically, there just has to be some way to make each child take up less RAM. I think it's the Template Toolkit modules that take up the most, but I'm not entirely certain.
Here's LiveJournal's solution: http://code.sixapart.com/trac/livejournal/browser/trunk/cgi-bin/Apache/DebateSuicide.pm Basically, it kills Apache processes based on how much free memory there is. I think it's a clever idea. Unfortunately, their particular implementation only works on Linux. I think we could make it cross-platform compatible, though.
Max, is that a blocker? I doubt people want to get out of memory when running mod_perl.
Flags: blocking3.0?
No, it's not a blocker because it may not be resolveable. (At least, the bug that I've described may not be resolveable.) I've seen some messages on the mod-perl list that 30MB may be a normal size for a mod_perl httpd. Also, I asked justdave and he said that bmo had only 15 httpd children, when I asked. It would die under something like a digg or a slashdot, though, probably, with how much RAM every httpd child takes up.
Flags: blocking3.0? → blocking3.0-
This bug is retargetted to Bugzilla 3.2 for one of the following reasons: - it has no assignee (except the default one) - we don't expect someone to fix it in the next two weeks (i.e. before we freeze the trunk to prepare Bugzilla 3.0 RC1) - it's not a blocker If you are working on this bug and you think you will be able to submit a patch in the next two weeks, retarget this bug to 3.0. If this bug is something you would like to see implemented in 3.0 but you are not a developer or you don't think you will be able to fix this bug yourself in the next two weeks, please *do not* retarget this bug. If you think this bug should absolutely be fixed before we release 3.0, either ask on IRC or use the "blocking3.0 flag".
Target Milestone: Bugzilla 3.0 → Bugzilla 3.2
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Target Milestone: Bugzilla 3.2 → ---
You need to log in before you can comment on or make changes to this bug.