Jump to content

craete more apache process


santovito

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/142386-craete-more-apache-process/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.