Box Overloading

Posted by SuperHosterz, 01-13-2008, 11:56 AM
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

Posted by Abu Mami, 01-13-2008, 03:12 PM
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.

Posted by SuperHosterz, 01-13-2008, 03:16 PM
Most of em are forums PHP , MySQL are being used ...

Posted by duplu, 01-13-2008, 03:17 PM
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 particular 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.

Posted by fog, 01-13-2008, 07:50 PM
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 certain, 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...

Was this answer helpful?

 Print this Article

Also Read

Avoiding cleartext passwords for mysql connection

Posted by DataCentric, 02-08-2011, 03:48 PMHey guys, Any bright ideas on how to better secure...

Looking for a Shell Script! :)

Posted by dwscenter, 01-14-2008, 01:25 AMFirst off I want to apologize if I posted this in the...

partition disk (/) 80% full - need advice

Posted by activa, 09-12-2007, 08:52 PMhello all . i have the partition (/) 80% full ; what...

Whats the best for

Posted by zefefre, 01-14-2008, 12:40 AMsorry double thread . mod please delete this one....

Question about load balancer

Posted by then00b, 09-05-2007, 06:37 AMHello I'm new to the forums and had a question. Thanks to...