View Full Version : MinSpare and Maxspare Apache PHP problem

11-08-2006, 12:27 PM
Hi ,

I have a high traffic website with 10.000 unique visitors with a 80.000 pages per day. I am have read nearly all the topics on the forum and tried but no luck.

The problem is that it hangs on the homepage a lot but on the other pages i have np.

Here is the system configuration:

Ram: 2 GB - CPU : Intel(R) Pentium(R) 4 CPU 2.40GHz

I am using this httpd.conf settings for the apache. Can anyone suggest me a better one.

Timeout 30
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
MinSpareServers 4
MaxSpareServers 10
StartServers 8
ServerLimit 1024
MaxClients 1024
MaxRequestsPerChild 1000

This is really urgent


11-08-2006, 12:31 PM
10k per day isnt that high relatively speaking, depending on what your site does, it should easily be able to handle that traffic.
If it is just the homepage that is hanging, what happens on your homepage?
Have you monitored your server load values, memory usage and cpu usage?
Do you have the bandwidth to cope with the visitors you are getting?
There are many options that could be causing the problem.

11-08-2006, 01:09 PM

Thanks for the quick reply

The site is similar to youtube which shares video files and etc.

Here is a screenshot for loadavg. I do not know if it'll be enough

http://img170.imageshack.us/img170/8810/image0094zh1.th.gif (http://img170.imageshack.us/my.php?image=image0094zh1.gif)

11-08-2006, 03:07 PM
With the amount of traffic you say you're getting, your problem is likely connection speed.

The snapshot you've attached is for a very small period of time - where you experiencing a problem at that time?

Our media site can easily get up to 10Mb/s with just a few hundred visitors on the site at a time - intially we were on a fixed speed line but 1mb/s was not enough, now we're on a line that can use up to 70mb/s but we have to monitor our usage ofcourse.
What kind of transfer deal do you have?

11-08-2006, 03:12 PM

Here is a better loadavg screenshoot.

http://img368.imageshack.us/img368/7059/image0094qb1.th.gif (http://img368.imageshack.us/my.php?image=image0094qb1.gif)

There are 10 servers and they are connected to a 100 Mbit unmetered solo. But we have about 50 Mbit at max these days.

The site is basiclly progressive flv stream. Any ideas?


11-08-2006, 04:50 PM
You're load balanced between 10 servers as you described above? Or there are 10 servers sharing the line and you have 1 of them?
Looking at your chart your memory usage is very high - what are you doing that uses so much RAM? You only have 2GB but at 9am ish you're nearly using all of it - I'm assuming 9am isnt your peak time.
It would be helpful to see a full days data and know the times where you're experiencing this problem

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum