Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    Default 'UPDATE' query causing huge server loads. Help!

    Hello, I'm new here and I have a problem. I have a website that gets over 425 million visits per day and it currently in the top 1,000 most popular websites on the net right now. I don't want to mention the site name because I don't want to take the subject off of what I'm asking about.

    We are only on ONE server but it has been doing good up until now. We have over 150,000 users and here is the server specs:

    4 Xeon 2.4 GHZ Processors
    2 gigs ram
    2 80 gig hdd (one dedicated to mysql)

    I recently recoded one of our main member pages that gets thousands of hits per minute. Each time it loads, it updates a few things in the database rather than inserting a few things into the database. We had to re-design our mysql structure so we could save the space and it just updates things on members accounts rather than inserting new things.

    Ever since I made this change, the server has been crashing because of the server load. It is always above 30 and when it peaks at about 70-80, it all crashes.

    I've fine tuned httpd.conf and my.cnf to the max and it is still crashing. When I last looked, apache was processing about 800 processes per second. Is there ANYTHING I can do to possibly optimize the update query or should we just fork out the money and cluster a few more servers?

    Btw, yes.. all of the mysql fields are indexed.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Have you checked your swapfile usage? Load causing servers to crash are usually as a result of memory thrashing and if your swapfile usage is about just a few K then that could be the cause - i.e. more memory may be required. For what you're doing, 2GB seems rather low to me.

    You don't mention your OS, but if you're running Linux, have you also checked that you do not have the laus rpm installed?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    3

    Default

    My swap is at 1 gig and it has used 0. I've been able to keep my memory usage below 30%.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    99

    Default

    To be honest I think you are probably in iowait hell if you are using ide for the databases. I would upgrade to SCSI asap.

  5. #5
    Registered User
    Join Date
    May 2005
    Posts
    3

    Default

    Both hdd's on are scsi. Any other suggestions?

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default

    Setup a server cluster.

    Regards,
    Brent

Similar Threads & Tags
Similar threads

  1. WHM causing high server loads
    By 2hostu in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-15-2009, 01:46 AM
  2. One users spamd process causing huge loads
    By housefire in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-01-2008, 07:58 AM
  3. Horde causing high server loads
    By gflamerich in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-04-2006, 10:20 PM
  4. grpck causing huge loads
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-03-2005, 07:10 AM
  5. Server spikes with huge loads for no reason
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-22-2003, 10:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube