Server Load Problems

Discussion in 'Site & Server Administration' started by Burta, Apr 29, 2006.

  1. #1
    I don't know if this is the right place to be posting this thread, but I have been having problems with my sites often crashing of late during peak times and my server load spiking way higher than it should go (I think) which is cause many of my visitors to find that my site's pages are timing out and not loading and occasionally the sit eis crashing all together.

    I'm currently on a VPS and running mainly forums and topsite scripts, I was wondering what I can do to reduce my server load and/or increaase the load which my site can handle?
     
    Burta, Apr 29, 2006 IP
  2. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    These are my suggestions:

    Prevention of Server Overload.

    1. Check all your scripts and codes and sanitize and recodes scripts that are loose
    2. Check your mysql queries of they are not requerying everytime the visitor access the same information.

    3. Separate Mail Server from Webserver

    Increase of Load Handled
    1. Upgrade to a higher pc specs.

    2. Ad Memory

    Hope it Helps
     
    theblight, May 2, 2006 IP
    Burta likes this.
  3. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Tweak httpd.conf and MySQL settings.

    I did once and my VPS was running fast.
     
    tanfwc, May 2, 2006 IP
  4. Burta

    Burta Well-Known Member

    Messages:
    1,199
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Thanks for your response I appreciate it. As for checking my scripts etc - I'm not very good at coding anything and any scripts I use are not created by myself... so I wouldn't even know what I was looking at, same goes for the MySQL queries... again I don't know much about these things. Please if you know any good sources of information about them I'd love to read them.

    Also can I ask what is the benefit of seperating the Mail Server from the Web Server?
     
    Burta, May 3, 2006 IP
  5. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #5
    u might be able to find the problem with this?

    http://projects.noemics.net/loadavg/

     
    just-4-teens, May 3, 2006 IP
  6. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    All that i can give is this google keyword
    "php linux code optimizer" and "php mysql code optimize"

    and it will show a bunch of help which will cater to the specific optimization you needed for your codes, it even points you to other forum.

    The benefits of Mail and Web Server Separation:

    1. You can isolate problems easily as you can pinpoint and easily fix where the problem came from if it is from a mail bombardment or webserver bombardment.

    2. Mails can be delivered fast and the resolution of the destination of the email would be on itself alone, not affecting the resolution of the webserver.

    3. You can restart services without affecting other services hosted.

    4. Security

    Combination of the two are ok, but if you got a large quantity of visitor, a dedicated webserver and mailserver can do a lot to handle the traffic or the load.

    Hope it Helps
     
    theblight, May 4, 2006 IP
  7. Burta

    Burta Well-Known Member

    Messages:
    1,199
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    165
    #7
    Thanks again, but it looks like the techies over where I host my site have said that I need to upgrade to a dedicated server to solve most of my problems. I thought that that might have been the case because only real trouble I have is when my site hits the peak period and then it packs it and dies. That said I'm currently getting over 5000 unique visitors a day - I'm not sure if that warrents a dedicated server but I have been told that if you getting around 3,000 a day it's worth looking into.

    Well hopefully this will solve the issue and it will allow me some growing room. Thanks again for the help.
     
    Burta, May 4, 2006 IP