The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 22, 2019, 05:25:16 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: apache2.conf::prefork MPM::MaxRequestsPerChild  (Read 3457 times)
dink
Expert
****
Offline Offline

Posts: 349


View Profile
« on: April 08, 2008, 11:44:38 PM »

Going thru a fresh install on a debian os.

Came across something that confused me the last time, so it's time for an explanation that I can understand.  Non-geeky Americanski plz.

 MaxRequestsPerChild: maximum number of requests a server process serves.

So, why is the default 0?  Doesn't that mean that there are no upper limits?  Should there be limits?  Why/why not?

Yours truly,
Boliver Shagnasty
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: April 09, 2008, 07:37:20 AM »

Exactly - if it's zero, then there's no limit to how many requests each child will process.

This is a leak-protection scheme: if you have a leaky "support object" (ie., something you compiled that uses memory and doesn't give it back) then by limiting the number of times each process can handle a request, you're doing a sort of "forced garbage collection" and reclaiming the memory.

For most installations, 0 is fine.

If you find yourself running out of memory, then you might start playing with that to see if it's something that Apache is causing.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
dink
Expert
****
Offline Offline

Posts: 349


View Profile
« Reply #2 on: April 09, 2008, 10:35:12 AM »

Cool.  Thanks.

Quote
if you have a leaky "support object"

Ya.  I gots one of those.  Dint know that was what was causing my memory to go south though.   Grin
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!