Portal Home > Knowledgebase > Articles Database > Extremly high loads and CPU %
Extremly high loads and CPU %
Posted by DStuart, 01-02-2008, 07:18 PM |
Hi,
I normally don't like too bother others with my problems but this time It seems I have no choice since I spent the whole afternoon trying to find out what the problem was and couldn't solve it "entirely".
Here's some hardware info:
Processor Information Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
Processor #1 speed: 2133.418 MHz
Processor #1 cache size: 2048 KB
Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
Processor #2 speed: 2133.418 MHz
Processor #2 cache size: 2048 KB
Memory Information Memory: 1031324k/1048320k available (2182k kernel code, 16308k reserved, 914k data, 240k init, 130816k highmem)
System Information Linux **************** 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 i686 i386 GNU/Linux
Running Fedora Core 5 and working for over half year with almost no major problems, but today something totally weird just happened...
After waking up I logged to the server and realized how slow it was, I went to see more about that and for my surprise the loading was around 8 so I went to the mail queue to see if there were a few thousand mails, there were 16 mails... So I went to the see CPU % processes at WHM and I was stunted to see around 30 processes allegedly using over 11500% of the CPU or more!
My first thought was that cPanel smoked something before releasing a last update and I didn't realized it immediately so I downgraded from Release to Stable.
Nothing happened and I lost my time with this overheated overloaded and over-everything and I didn't changed any configuration.
I changed many old configs that... I don't know, might crashed with something that might changed... I was trying and looking for anything.
The load was getting up instead of down, it went up to around 60.
The final conclusion is that whenever I turn the MySQL on I got overwhelming loads otherwise the other services "only" give me around 1.5 of load but still very unstable.
I'm getting a little tired so my explanation may be a little confusing, sorry about that.
Anybody knows what this is? Did this ever happened to you? Extremely high loads without an obvious reason? If anyone could help me I would be thankful for that, I'm getting kind of desperate.
|
Posted by marisc, 01-03-2008, 01:22 AM |
I know the feeling. Anytime I see a high load on my servers it drives me nuts, but thankfully platinumservermanagement is always there to help me. I just submit a ticket and they fix it for me.
|
Posted by omega36, 01-03-2008, 01:26 AM |
In SSH, when you run 'top' what does it show as the main culprits?
|
Posted by elliotcol, 01-03-2008, 08:41 AM |
can any one maybe share with the info, whenever cpu is high; what to look for and how to fix? that might be helpful..
|
Posted by Abu Mami, 01-03-2008, 09:20 AM |
The only times I've experienced high cpu usage, it was due to very inefficient mySQL queries. After fixing them my cpu barely ever goes over 10%. (I then realized that my server is probably too powerful for my needs).
The first thing that I did was to use the LIMIT clause in my queries. After doing that my cpu usage went way down.
I tweaked my queries a bit by using JOIN to improve efficiency. I also redid my indexes, adding some where necessary, adding some relations, and fixing things up.
My box barely works up a sweat now.
|
Posted by eb1024, 01-03-2008, 01:05 PM |
I'm having the same problem, I would be very glad if someone could help me track down the origin of this absurd load.. Here is my top output:
Thanks!
|
Posted by CretaForce, 01-03-2008, 01:53 PM |
Your server swaps a lot. If you can add 1GB more ram.
|
Add to Favourites Print this Article
Also Read