LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2010, 01:49 PM   #1
ohlookaforum
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Rep: Reputation: 0
High Load Averages on my Forum- whostmgr2 - top ./top


Hey guys I will initially admit that I do NOT know lunux. My forum uses it though and up until now I have never had an issue.

About 4 days ago after heavy traffic the forum kept crashing. Load averages were up and cpu usage for whostmgr2 - top ./top was high.

Traffic is back down yet the forum keeps crashing.

I keep restarting Apache, this helps for about 5 minutes and then the forum will crash again. Ive set my forum load averages to put the forum on standby if they get too high but its just a temporary fix.

Could someone maybe help?

Further Info:
Time: Thu Aug 5 21:35:14 2010 +0100
1 Min Load Avg: 22.18
5 Min Load Avg: 7.09
15 Min Load Avg: 2.99
Running/Total Processes: 3/449

Last edited by ohlookaforum; 08-06-2010 at 02:09 PM.
 
Old 08-06-2010, 06:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Hi, welcome to LQ!

You may want to check in top which individual process
is gobbling up CPU, causing the load.



Cheers,
Tink
 
Old 08-06-2010, 06:42 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,634

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Define "keeps crashing".
Could be an unclean filesystem - could be lots of things. When the loadavg is "high" , run the following from a terminal, and post the topsave.txt it creates
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}' > topsave.txt
 
Old 08-07-2010, 07:30 PM   #4
ohlookaforum
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Original Poster
Rep: Reputation: 0
My forum isn't currently down but here is the info to start the help :

Quote:
top - 02:29:55 up 38 min, 1 user, load average: 0.16, 0.45, 0.87
Tasks: 238 total, 1 running, 237 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.6%sy, 2.2%ni, 93.6%id, 0.9%wa, 0.8%hi, 1.6%si, 0.0%st
Mem: 8168584k total, 3109048k used, 5059536k free, 44280k buffers
Swap: 4192924k total, 0k used, 4192924k free, 2123332k cached


1760 root 10 -5 0 0 0 S 0.3 0.0 0:00.63 kjournald
25195 nobody 19 4 156m 26m 11m S 0.3 0.3 0:00.21 httpd
25203 nobody 19 4 156m 25m 10m S 0.3 0.3 0:00.43 httpd
25221 nobody 19 4 156m 25m 10m S 0.3 0.3 0:00.25 httpd
25528 nobody 19 4 156m 25m 10m S 0.3 0.3 0:00.34 httpd
25674 nobody 19 4 156m 25m 9m S 0.3 0.3 0:00.22 httpd
25730 nobody 19 4 150m 17m 7612 S 0.3 0.2 0:00.10 httpd
25791 root 15 0 12840 1176 800 R 0.3 0.0 0:00.10 top
25795 nobody 19 4 147m 12m 4124 S 0.3 0.2 0:00.02 httpd
25802 nobody 19 4 147m 12m 4112 S 0.3 0.2 0:00.01 httpd
25810 nobody 19 4 147m 12m 4108 S 0.3 0.2 0:00.01 httpd
1 root 15 0 10348 704 588 S 0.0 0.0 0:01.59 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.86 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.47 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1

Last edited by ohlookaforum; 08-07-2010 at 08:30 PM.
 
Old 08-07-2010, 08:49 PM   #5
ohlookaforum
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Here it is when the forum is down:

Quote:
top - 02:49:20 up 58 min, 1 user, load average: 19.10, 5.80, 2.63
Mem: 8168584k total, 4289064k used, 3879520k free, 53996k buffers
Swap: 4192924k total, 0k used, 4192924k free, 2769472k cached
Cumulative time On
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2978 mysql 21 6 839m 68m 4176 S 0.0 0.9 0:44.18 mysqld
2076 root 10 -5 0 0 0 R 0.0 0.0 0:17.55 kondemand/1
15 root 10 -5 0 0 0 S 0.0 0.0 0:03.56 events/1
14 root 10 -5 0 0 0 S 0.0 0.0 0:03.13 events/0
4226 root 18 0 124m 23m 1708 S 0.0 0.3 0:02.14 lfd
1764 root 10 -5 0 0 0 D 0.0 0.0 0:01.98 kjournald
11910 root 21 4 146m 14m 7368 S 0.0 0.2 0:01.91 httpd
2075 root 10 -5 0 0 0 S 0.0 0.0 0:01.89 kondemand/0
1766 root 10 -5 0 0 0 D 0.0 0.0 0:01.84 kjournald
1 root 15 0 10348 704 588 S 0.0 0.0 0:01.59 init
4214 root 23 8 110m 43m 2540 S 0.0 0.5 0:00.99 spamd
1760 root 10 -5 0 0 0 D 0.0 0.0 0:00.97 kjournald
2 root RT -5 0 0 0 S 0.0 0.0 0:00.86 migration/0
32137 nobody 19 4 158m 29m 12m S 0.0 0.4 0:00.84 httpd
32141 nobody 19 4 158m 28m 11m S 0.0 0.4 0:00.74 httpd
4247 root 24 8 110m 43m 1744 S 0.0 0.5 0:00.70 spamd
1762 root 10 -5 0 0 0 D 0.0 0.0 0:00.63 kjournald
5 root RT -5 0 0 0 S 0.0 0.0 0:00.61 migration/1
608 nobody 19 4 157m 24m 8648 S 0.0 0.3 0:00.55 httpd
 
Old 08-09-2010, 01:43 PM   #6
ohlookaforum
LQ Newbie
 
Registered: Aug 2010
Posts: 10

Original Poster
Rep: Reputation: 0
thank you for reporting my thread be moved.

Last edited by ohlookaforum; 08-09-2010 at 04:58 PM.
 
Old 08-09-2010, 05:26 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Moved: This thread is more suitable in <Linux-Server> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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 averages in linux machine chaitanya1982 Linux - Server 6 07-07-2010 11:44 PM
load averages high, caused by mysql napraviculom Linux - Server 7 01-01-2010 07:29 AM
Load is very high but CPU usage is almost zero in top! mam2 Linux - Server 3 12-18-2009 03:53 PM
Need help troubleshooting high load averages jdw52 Linux - Server 6 12-31-2008 06:37 PM
CPU load high, top processes very low? Thinking Linux - Software 12 03-19-2007 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration