Max httpd processes ?

Max httpd processes ?

Post by Sarabjeet Sing » Wed, 08 Nov 1995 04:00:00



I am using NCSA 1.4.2 server.

I have set StartServers to 5 and MaxServers to 100. Is there an
easy way to find out the actual max number of httpd processes
ever reached since the server was started?

Thanks,
Sarab.

 
 
 

Max httpd processes ?

Post by Matt Kru » Thu, 09 Nov 1995 04:00:00



Quote:> I have set StartServers to 5 and MaxServers to 100. Is there an
> easy way to find out the actual max number of httpd processes
> ever reached since the server was started?

Cant you just do a "ps" and see how many children are running?  They
don't die once they're started.

Unless you're using some super-huge hardware and have a *lot* of
connections, setting MaxServers to 100 is big-time overkill.  20-25
should be more than enough.

--
============================================================================

--------------------------------------+-------------------------------------
      Check out MK-STATS - A new, complete WWW log-analysis program
                   http://web.sau.edu/~mkruse/mkstats/
============================================================================

 
 
 

Max httpd processes ?

Post by Chris Morr » Sat, 11 Nov 1995 04:00:00



>ps -ef|fgrep httpd|wc -l seems to return different number every
>few minutes. BTW my site is a heavily used one.

As time goes by and requests go up the number of servers
increases...basically if you set start servers to 5 and max to 10 you
get start when the initial startup is done...then if a case where 6
requests come in at once happens a new httpd is started and it stays
running forever...you now have 6 (not 5) servers until you kill off
the head server...(httpd-root I think) now, this goes on til you reach
10, then when the 11th request comes in an existing server forks  a
new one...so for the instant you have 11 requests you have 11 servers,
after the 11th request is finished you now have 10 servers again...

So, ideally you should start low and reach some steady-state maximum #
of started servers, right? unless some group of netscape surfers jump
you at pnce:) (4 simultaneous connections from each surfer will really
be noticed quicky)  

Quote:>Does the actual max number get logged anywhere? How would you know if
>your MaxServers is set to too low.

it's too low if you are seeing consistently more than max server
running:)
*****************************************************
Chris Morrow




http://www.his.com/~morrowc
*****************************************************
 
 
 

1. Max Socket & Max Processes

I have a few questions. Any help would be greatly appreciated:

1- What is the maximum number of sockets allowed per process on Linux
(assuming that we follow all the instructions available to increase this
number)? I've read most document on this matter and no one seems to know -
Any good documents out there?
2- What is the max number of child processes that can be spawned? (i.e.:
Apache seems to freeze after 255 child processed are spawned) - How can this
number be increased?
3- How do we limit the amount of mem used by each process (or lower the
default allocated amount).

Thanks for any hints or help.

Al

2. STRANGE SLIP problem. Works once and then dies!

3. Installing httpd to /var/httpd or to /usr/local/etc/httpd

4. help !!! xfig problem

5. NCSA httpd:max no of connections?

6. kspread 1.2.1, dcop

7. Max number of httpd deamons running?

8. compile fix for dmi_scan.c in 2.4.bk-current

9. NCSA httpd 1.3 - bypassing max # of users limit

10. Q: max # processes (Solaris 2.3 / SunOS 5.3)

11. Max process

12. Increase max open processes

13. Max Number of Shared Memory per Process