santovito Posted January 25, 2009 Share Posted January 25, 2009 Hello! I'm a new user of this fantastic forum :-) I have a question of apache: My httpd.conf is set: ServerRoot "/etc/httpd" Listen 80 ServerLimit 20000 Timeout 150 KeepAlive On MaxKeepAliveRequests 200 KeepAliveTimeout 15 MinSpareServers 20 MaxSpareServers 100 StartServers 20 MaxClients 800 MaxRequestsPerChild 100000 how can I create processes that await visitors? Sorry for my English. Santovito Quote Link to comment Share on other sites More sharing options...
corbin Posted January 26, 2009 Share Posted January 26, 2009 Just wondering, what exactly is your problem? Is apache too busy to handle all of your visitors? If so, you should probably tone KeeAliveTimeout down a bit. It ties up a socket for up to 15 seconds after the last request from a visitor. A waste of time in most cases. I usually set it around 2. (That's 2 seconds without anything happening on the socket.( MinSpareServers is how many processes Apache should keep alive if more are not needed. That way, say you have 3 processes in use and suddenly have a traffic spike, Apache has an extra 17 processes already spawned to use. MaxSpareServers is the most non-used processes that Apache should ever have. So, if you want to support more clients, I recommend setting MaxClients higher and setting KeepAliveTimeout lower. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.