View Full Version : HELP!!! Server maxed out
ClusterMania 05-31-2002, 12:53 PM Current Time: Friday, 31-May-2002 09:39:04 PDT
Restart Time: Friday, 31-May-2002 09:32:28 PDT
Parent Server Generation: 0
Server uptime: 6 minutes 36 seconds
Total accesses: 54160 - Total Traffic: 1.7 GB
CPU Usage: u12.9375 s77.3594 cu.203125 cs.078125 - 22.9% CPU load
137 requests/sec - 4.5 MB/second - 33.4 kB/request
2022 requests currently being processed, 0 idle servers
MinSpareServers 100
MaxSpareServers 300
StartServers 500
MaxClients 3000
I thought my setting were high enough to do more around 3000
cperciva 05-31-2002, 01:04 PM Increase the spare servers value; what happened here (as far as I can see) is that too many requests arrived at once and Apache couldn't fork fast enough to keep up.
Of course, if you served 1.7GB in six minutes, you can probably afford to get another server; and with a cpu load of above 20% you'll have to do that pretty soon anyway.
ClusterMania 05-31-2002, 01:27 PM I can't even telnet in. I guess I have to reboot it =/
ClusterMania 05-31-2002, 01:34 PM I rebooted and got in. This look good?
Timeout 100
KeepAlive On
MaxKeepAliveRequests 800
KeepAliveTimeout 100
MinSpareServers 300
MaxSpareServers 500
StartServers 500
MaxClients 3000
?????
bash-2.05# May 31 10:21:53 bsd1 /kernel: pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
May 31 10:21:53 bsd1 /kernel: pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
bash-2.05# May 31 10:21:53 bsd1 /kernel: pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
May 31 10:21:53 bsd1 /kernel: pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
May 31 10:23:52 bsd1 /kernel: ipfw: limit 100 reached on entry 10021
allan 05-31-2002, 02:01 PM Originally posted by ClusterMania
I rebooted and got in. This look good?
MaxClients 3000
Did you change the HARD_SERVER_LIMIT in httpd.h and recompile before setting the MaxClients to 3000?
http://httpd.apache.org/docs/mod/core.html#maxclients
ClusterMania 05-31-2002, 02:14 PM Yeah I think it's even set higher than that. I run freebsd I think I have to set it higher in lint
options "PMAP_SHPGPERPROC=201"
201 to 1000?
http://www.cs.columbia.edu/~pingpan/public_software/netipopt/sample.FBSD.3.4/i386/conf/LINT
dektong 05-31-2002, 02:45 PM don't expect much from apache (at least version 1.3.x) when you have many connections. It has been know apache's performance drops drastically beyond 150 concurrent httpd connections. A free solution, thttpd might be a much better solution for busy sites, but it has its own lilmitations with php, etc. Zeus webserver will be much better alternative, but it's also much more expensive.
cheers,
:beer:
clocker1996 05-31-2002, 03:37 PM Originally posted by dektong
don't expect much from apache (at least version 1.3.x) when you have many connections. It has been know apache's performance drops drastically beyond 150 concurrent httpd connections. A free solution, thttpd might be a much better solution for busy sites, but it has its own lilmitations with php, etc. Zeus webserver will be much better alternative, but it's also much more expensive.
cheers,
:beer:
what about apache 2.0? do you know if it performs well with a lot of connections etc?
ClusterMania 05-31-2002, 04:21 PM Originally posted by dektong
don't expect much from apache (at least version 1.3.x) when you have many connections. It has been know apache's performance drops drastically beyond 150 concurrent httpd connections. A free solution, thttpd might be a much better solution for busy sites, but it has its own lilmitations with php, etc. Zeus webserver will be much better alternative, but it's also much more expensive.
cheers,
:beer:
How do I install thttpd over apache? I don't think much php is in use
dektong 05-31-2002, 09:58 PM I have never used thttpd myself since we rely heavily on php. But you can donwload thttpd and see how to install it here (http://www.acme.com/software/thttpd/). For a web server comparison/benchmark, check it out here (http://www.acme.com/software/thttpd/benchmarks.html).
Have you tried apache 2.0? I am not sure whether apache 2.0 will suffer the same problem as apache 1.3.x for high number of simultaneous httpd connections. Hopefully not ...
cheers,
:beer:
dektong 05-31-2002, 10:02 PM also, I have read it somewhere (can't find it again) where people use both apache and thttpd where apache serves mostly php/dynamic contents and thttpd serves mainly static contents. I am still have to learn how to do this.
This url (http://php.weblogs.com/tuning_apache_unix) might be usefull ...
cheers,
:beer:
ckpeter 05-31-2002, 10:20 PM There is also the tux web server, serving directly from kernel, lighting fast.
But only static content is supported. Still, maybe worth a look to use with apache to achieve better performance.
Peter
ClusterMania 06-01-2002, 10:34 PM I think I know the reason why now =/ It's the hard limit for plesk
|