Results 1 to 5 of 5

Thread: Box Overloading

  1. #1

    Box Overloading

    I've 50 sites hosted on server all are small sites, not more than 20 users online on a site

    still box overloads , I've 4 GB ram , and load sometimes reaches 160 , 200 etc

  2. #2
    Join Date
    Oct 2000
    Location
    Israel
    Posts
    1,286
    What do you mean by overload? High CPU usage? High memory usage?

    Or perhaps your box is under attack?

    Try explaining what the sites do...

    Are they script (PHP, ASP) based?
    Do they access mySQL, or another database?

    4GB is a lot of RAM and should be able to handle a good number of sites. You've probably got an ill-behaved script or a some very bad mySQL queries.

    You'll have to provide more information for anyone to be able to take a stab at it.
    Last edited by Abu Mami; 01-13-2008 at 03:15 PM.

  3. #3
    Most of em are forums
    PHP , MySQL are being used ...

  4. #4
    Join Date
    Aug 2006
    Location
    Milton Keynes, UK
    Posts
    52
    Quote Originally Posted by SuperHosterz View Post
    I've 50 sites hosted on server all are small sites, not more than 20 users online on a site

    still box overloads , I've 4 GB ram , and load sometimes reaches 160 , 200 etc
    I notice you are running cPanel. Is this a recent problem?

    I only ask because since late December my box load has been hitting 40-60 at certain times of the day whereas before this it only ever barely got to 1. From reading the cpanel forums I believe there may be a problem with Apache 2, PHP5 and the latest Zend, which I am currently investigating. Another clue to the same problem is to check whether there are any 'core' dump files on the server as I'm getting loads of these. They appear in users webspace (who use Zend) as core.xxx where xxx is a seemingly random number - the files are pretty big.

  5. #5
    Join Date
    Jun 2002
    Posts
    1,376
    Quote Originally Posted by SuperHosterz View Post
    I've 50 sites hosted on server all are small sites, not more than 20 users online on a site

    still box overloads , I've 4 GB ram , and load sometimes reaches 160 , 200 etc
    50 sites x 20 users each = 1,000 concurrent users.

    Still, a load average of 200 on a machine with 50 sites, when you have 4 GB of RAM, suggests that something is wrong.

    Some things I'd look at:

    - run 'top' -- what are the first few processes listed? (Hint: run 'top' and, when running, press "c" to show full command names. If you want to copy-and-paste results, "top -b -n1 | less" is your friend, as it'll run it only once and not in 'interactive' mode.)

    - Do you have DMA turned on at your hard drives? (Assuming you're using normal ATA drives.) "hdparm /dev/hda" (with no other arguments) will show some basic information... You should see a line along the lines of...
    using_dma = 1 (on)

    If this is "0 (off)," then your drive is running very slowly, which may cause things to back up. (I'm not sure it's the full explanation.)

    - MySQL performance? This isn't quite as easy to look at. If you have phpMyAdmin, it does provide some "Server Status" information. (There's also a tool, but it's not a 'standard' thing installed, called mytop.) That's another possible area of things building up.

    - Outgoing network connections... Run "netstat --inet" and look for oddities. (In particular, connections to port 6667? That's a telltale sign of IRC bots.)

    As others have said, it's hard to give advice without more information; hopefully some of what I've said will help you find out some more information on what's going on, which will let us help narrow down the problems.
    Last edited by fog; 01-13-2008 at 07:50 PM. Reason: 4 GB of RAM, not 400 GB...

Posting Permissions

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