[us...@httpd] How does Prefork work?

2009-05-27 Thread CrystalCracker
Can anyone explain me how exactly prefork works? StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 ServerLimit 16 I think I got confused between the terms - server, process and thread. If prefork is a single thread process, what does that ThreadsPerChild mean

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 27, 2009, at 11:14 PM, CrystalCracker wrote: Can anyone explain me how exactly prefork works? StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 ServerLimit 16 Prefork works by spawning one process to handle one connection. So here, Apache can spa

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread CrystalCracker
Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild 4000 I have at least 20 active apache threads (

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 28, 2009, at 2:55 PM, CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread CrystalCracker
>>MaxClients at 250 means that potentially 250 httpd processes can be >>running at once. Do you have the memory to support that many without >>swapping? Swapping usually ends up killing a system, especially if >>it's already handling a lot of disk i/o. Regarding MaxClients at 250, the only

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 28, 2009, at 4:19 PM, CrystalCracker wrote: MaxClients at 250 means that potentially 250 httpd processes can be running at once. Do you have the memory to support that many without swapping? Swapping usually ends up killing a system, especially if it's already handling a lot of disk i/o

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread André Warnier
CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild 4000 I have at least 2

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Sean Conner
It was thus said that the Great Doug Bell once stated: > On May 28, 2009, at 2:55 PM, CrystalCracker wrote: > > >I have at least 20 active apache threads (ps -ef | grep httpd), average > >is about 40 threads and goes upto 70 at the peak. Does the above setting > >sounds resonable? > > MaxClients

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Sander Temme
On May 28, 2009, at 12:55 PM, CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChil

Re: [us...@httpd] How does Prefork work?

2009-05-29 Thread CrystalCracker
Ok, now given that I have the following settings for prefork: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients250 MaxRequestsPerChild 1 Is the following setting for Tomcat AJP Connector appropriate? What I wanna know is how the apache processes work