Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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.

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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?

  • #5
    New Coder
    Join Date
    Sep 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #6
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •