[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raQ4 ]The CPU is heavily loaded
- Subject: Re: [cobalt-users] [raQ4 ]The CPU is heavily loaded
- From: "William J.A. Brillinger" <billy@xxxxxxxxxx>
- Date: Sat Jun 14 14:00:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 09:53 PM 14/06/03 +0100, you wrote:
Latelly i've been recieving this mail @ 10:30 am:
Over the past fifteen minutes, the CPU has been heavily loaded.
This will result in noticible performace loss. Consider moving some of the
services to other Sun Cobalt servers, or reduce the complexity of the CGI
scripts running on the Sun Cobalt server itself.
1 minute load average: 13.82
5 minute load average: 9.04
15 minute load average: 5.78
Don't know what to do.. can someone direct me to some kind of tool that
monitors and logs cpu usage by process... i know that top monitors it....
but i can't stay 24/7 behind it... so i need some kind of logging. or if
someone knows because this happens from time to time. thanks
Nuno Figueiredo
Maginet
Here is a script you can run from a cron job at whatever interval you want.
Don't forget to delete the file once in a while. It will get BiG!!
I suggest running it every 5 minutes for hour 9 and every 1 minute for 10...
Just change the "-n25" bit to have more or less output.
-------------
#!/bin/bash
# create a log of top output where new data is
# appended to the beginning of the log not the end
# March 25, 2003 by William Brillinger
cd /home/sites/home/web/
mv top.log top.log.old
top -b -n1 | head -n25 > top.log
cat top.log.old >> top.log
rm top.log.old
-------------
Cheers,
- Bill
---------------------------------
William J.A. Brillinger
Precision Design Co.
E-Mail: mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net