LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-18-2009, 01:33 AM   #1
mam2
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Question Load is very high but CPU usage is almost zero in top!


I am facing a strange problem. The load on my server is getting very high as you can see in the top output but the CPU usage is almost zero.

I have noticed that the load is getting high whenever I start apache2.

The server has apache2, tomcat, mysql

Please help

top - 08:29:51 up 63 days, 22:53, 1 user, load average: 12.95, 10.61, 8.35
Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7%us, 0.6%sy, 0.0%ni, 98.4%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 33023640k total, 19154120k used, 13869520k free, 373012k buffers
Swap: 999992k total, 676k used, 999316k free, 13818440k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 10312 748 620 S 0 0.0 1:54.74 init
2 root 15 -5 0 0 0 S 0 0.0 3:27.03 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:01.66 migration/0
4 root 15 -5 0 0 0 S 0 0.0 0:27.74 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 3365:16 watchdog/0
6 root RT -5 0 0 0 S 0 0.0 0:08.92 migration/1
 
Old 12-18-2009, 03:46 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,240

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
And ?.
Does it affect your ability to service your users ?. Doesn't look like any I/O wait there, but you could check with iostat or similar.
 
Old 12-18-2009, 02:43 PM   #3
mam2
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
And ?.
Does it affect your ability to service your users ?. Doesn't look like any I/O wait there, but you could check with iostat or similar.
Yes it affect the users and load is always increasing

the iostat is:

avg-cpu: %user %nice %system %iowait %steal %idle
0,73 0,00 0,59 0,33 0,00 98,36

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 2,88 47,34 136,57 263814359 761116922
sda1 0,00 0,01 0,00 79062 146
sda2 0,00 0,00 0,00 784 1352
sda3 2,88 47,32 136,57 263734297 761115424


When load was 32.39

top - 21:40:09 up 64 days, 12:03, 1 user, load average: 32.39, 24.65, 14.31
Tasks: 188 total, 1 running, 187 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.0%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 33023640k total, 20265148k used, 12758492k free, 389448k buffers
Swap: 999992k total, 676k used, 999316k free, 14192196k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27460 root 20 0 18956 1336 940 R 1 0.0 0:00.08 top
1 root 20 0 10312 748 620 S 0 0.0 1:55.09 init
2 root 15 -5 0 0 0 S 0 0.0 3:27.03 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:01.66 migration/0
4 root 15 -5 0 0 0 S 0 0.0 0:27.74 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 3381:13 watchdog/0
6 root RT -5 0 0 0 S 0 0.0 0:08.94 migration/1
7 root 15 -5 0 0 0 S 0 0.0 0:05.14 ksoftirqd/1
 
Old 12-18-2009, 03:53 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,240

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
In Linux loadavg is the count of runnable tasks plus those in uninterruptible sleep. The latter are usually waiting on disk I/O, but can be generated by a programming bug - maybe a bad script, who knows. You don't show any indication of I/O wait. run this to see the processes in uninterruptible wait
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
High load, high RAM usage and unresponsive VPS saeed22 Linux - Server 1 08-20-2009 11:58 AM
load average and cpu usage too high, why could i do? v_fone Linux - Newbie 5 07-02-2009 03:17 AM
high load average, low cpu usage ! jimmyjiang Red Hat 8 02-08-2008 12:28 AM
CPU load high, top processes very low? Thinking Linux - Software 12 03-19-2007 12:59 AM
why high load, but no cpu usage? JustinHoMi Linux - General 6 01-11-2006 10:43 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration