Re: Server Load Profile

[prev] [thread] [next] [Date index for 2005/05/15]

From: Bill Whillers
Subject: Re: Server Load Profile
Date: 19:56 on 15 May 2005
Thanks for your excellent resource.

As a stop-gap (for now) the following script is cron'd every minute on the 
server to log basic load profile and to email `top` snapshot if things get 
out of hand. 

-----monitor-----------

uptime>>/jobs/monitor.log;
temp=$(cat /proc/loadavg);
if [ $(echo -e "scale=0 \n ${temp%% *}/0.01 \nquit \n" | bc) -gt 100 ]
then
  file="/jobs/monitor.peak_`date '+%m-%d-%y-%H:%M:%S'`";
  `top -b -n 1 > ${file}`;
   mail root -s "Load Warning: ${temp}" < ${file};
fi

----------------

Better ideas are always appreciated.

Bill


On Thursday 12 May 2005 16:57, Stas Bekman wrote:
> Bill Whillers wrote:
> > Hi,
> >
> > I'd really appreciate any ideas or "best practices" you might have before
> > re-inventing with Yet Another Benchmarker/Profiler...
> >
> > We are expecting an unusually high amount of traffic over the next month
> > on one of our Apache/MySQL machines and I'd like to profile this in a
> > simple, "bootstap" way (i.e.  process logger running every 2 minutes)
> > capturing only critical info on the server (CPU, IO, Apache, MySQL
> > processes, etc.).
> >
> > I'm hoping that this log process will be very light-weight.
>
> Bill, please try: http://modperlbook.org/html/part2.html

Server Load Profile
Bill Whillers 23:06 on 12 May 2005

Re: Server Load Profile
Stas Bekman 23:57 on 12 May 2005

Re: Server Load Profile
raja agireddy 13:15 on 13 May 2005

Re: Server Load Profile
Tom Schindl 13:48 on 13 May 2005

Re: Server Load Profile
Bill Whillers 19:56 on 15 May 2005

Re: Server Load Profile
Stas Bekman 15:28 on 16 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52