Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-08-2006, 11:27 AM   PM User | #1
bunal
New Coder

 
Join Date: Sep 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
bunal is an unknown quantity at this point
Angry MinSpare and Maxspare Apache PHP problem

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.

Code:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
MinSpareServers 4
MaxSpareServers 10
StartServers 8
ServerLimit 1024
MaxClients 1024
MaxRequestsPerChild 1000
This is really urgent

Thanks
bunal is offline   Reply With Quote
Old 11-08-2006, 11:31 AM   PM User | #2
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
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.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 11-08-2006, 12:09 PM   PM User | #3
bunal
New Coder

 
Join Date: Sep 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
bunal is an unknown quantity at this point
Hi

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

bunal is offline   Reply With Quote
Old 11-08-2006, 02:07 PM   PM User | #4
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
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?
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 11-08-2006, 02:12 PM   PM User | #5
bunal
New Coder

 
Join Date: Sep 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
bunal is an unknown quantity at this point
Hi

Here is a better loadavg screenshoot.



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?

Best
bunal is offline   Reply With Quote
Old 11-08-2006, 03:50 PM   PM User | #6
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
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
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:10 PM.


Advertisement
Log in to turn off these ads.