Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.