You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill Whillers <mo...@whohasit.com> on 2005/05/13 01:06:31 UTC
Server Load Profile
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
Re: Server Load Profile
Posted by Tom Schindl <to...@gmx.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Please start a new thread if you are not following up to one the next time]
Maybe you could provide some more information. e.g. the source lines
around 302 of your AuthenCache.pm.
I'm afraid but I think AuthenCache seems a little bit date and will
surely not work with an Version of mp2 after RC5. I'm even unsure that
it works with mp2 but maybe it does.
Tom
raja agireddy schrieb:
| Hello,
|
| I have installed
| httpd-2.0.53 ---> Apache
| mod_perl-2.0.0-RC4 ---> modperl
| Authen-Smb-0.91
| Apache-AuthenSmb-0.72
| Apache-AuthenCache-1.00
|
| I am getting the following error.
| [Thu May 12 17:12:36 2005] [error] [client 135.43.15.119] Usage:
| Apache::RequestRec::notes(obj, val=NULL) at
| /raj/perl/lib/site_perl/5.8.6/Apache/AuthenCache.pm line 302.\n
|
| I am trying to configure the Apache-AuthenCache module.
|
| Any advice would be greatly appreciated.
|
| Regards,
| Raja
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFChLAvkVPeOFLgZFIRAn/yAJ0fPLzfQ8afOmM356tGxr9cJSyK2wCgg/+B
jQ3aVSn9EQ5ShOju9NjhZiQ=
=FEDN
-----END PGP SIGNATURE-----
Re: Server Load Profile
Posted by raja agireddy <ta...@gmail.com>.
Hello,
I have installed
httpd-2.0.53 ---> Apache
mod_perl-2.0.0-RC4 ---> modperl
Authen-Smb-0.91
Apache-AuthenSmb-0.72
Apache-AuthenCache-1.00
I am getting the following error.
[Thu May 12 17:12:36 2005] [error] [client 135.43.15.119] Usage:
Apache::RequestRec::notes(obj, val=NULL) at
/raj/perl/lib/site_perl/5.8.6/Apache/AuthenCache.pm line 302.\n
I am trying to configure the Apache-AuthenCache module.
Any advice would be greatly appreciated.
Regards,
Raja
On 5/12/05, Stas Bekman <st...@stason.org> 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
>
> --
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
Re: Server Load Profile
Posted by Stas Bekman <st...@stason.org>.
Bill Whillers wrote:
> 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, please read the information at the URL that I've sent before:
http://modperlbook.org/html/part2.html
In particular:
http://modperlbook.org/html/ch14_01.html
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Server Load Profile
Posted by Bill Whillers <mo...@whohasit.com>.
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
Re: Server Load Profile
Posted by Stas Bekman <st...@stason.org>.
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
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com