Re: Apache::VMonitor problem
Richard Titmuss wrote: > > Stas Bekman wrote: > >> Richard Titmuss wrote: >> >>> Hi, >>> >>> I am trying to setup Apache::VMonitor on a mod-perl enabled server. >>> The page is returned OK but some of the information seem corrupt. The >>> following is an example of the output which I get: >>> >>> ##PID M Elapsed LastReq Srvd Size Share VSize Rss >>> ClientRequest (first 64 chars) >>> 5: 22691 1 0.000s 8.34d 60K 16.1M 14.8M 19.5M 16.1M >>> 127.0.0.2 GET /sys-monitor >>> >>> >>> The 'M', 'Elapsed', 'LastReq' and 'Srvd' columns are not returning >>> sensible values. I'd only just started this server so the last >>> request cannot have taken 8days! >>> >>> It appears the the apache scoreboard is not being read correctly. Can >>> anyone help? >> >> >> >> Well as you've probably figured out it's not an Apache::VMonitor >> problem, since it doesn't do much but reading the data from >> Apache::Scoreboard and formatting it nicely. >> >> Does your mod_status show valid data in the extended mode? Id not it's >> an apache problem. > > > I've checked mod_status and the results are displayed correctly. Does > this mean that it is an Apache::Scoreboard problem? I've tried > recompiling both apache and Apache::Scoreboard but this does not help. > Any ideas? I haven't modified the code logic in a while and there were no bug reports, so most likely something wrong happens at the Apache::Scoreboard level. Simply try to debug it and compare with what mod_status reports. Both mod_status and Apache::Scoreboard use the same source of information. what platform, perl version do you have this problem on? __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Apache::VMonitor problem
Stas Bekman wrote: > Richard Titmuss wrote: > >> Hi, >> >> I am trying to setup Apache::VMonitor on a mod-perl enabled server. >> The page is returned OK but some of the information seem corrupt. The >> following is an example of the output which I get: >> >> ##PID M Elapsed LastReq Srvd Size Share VSize Rss >> ClientRequest (first 64 chars) >> 5: 22691 1 0.000s 8.34d 60K 16.1M 14.8M 19.5M 16.1M >> 127.0.0.2 GET /sys-monitor >> >> >> The 'M', 'Elapsed', 'LastReq' and 'Srvd' columns are not returning >> sensible values. I'd only just started this server so the last >> request cannot have taken 8days! >> >> It appears the the apache scoreboard is not being read correctly. Can >> anyone help? > > > Well as you've probably figured out it's not an Apache::VMonitor > problem, since it doesn't do much but reading the data from > Apache::Scoreboard and formatting it nicely. > > Does your mod_status show valid data in the extended mode? Id not it's > an apache problem. I've checked mod_status and the results are displayed correctly. Does this mean that it is an Apache::Scoreboard problem? I've tried recompiling both apache and Apache::Scoreboard but this does not help. Any ideas? Thanks, Richard
Re: Apache::VMonitor problem
Richard Titmuss wrote: > Hi, > > I am trying to setup Apache::VMonitor on a mod-perl enabled server. The > page is returned OK but some of the information seem corrupt. The > following is an example of the output which I get: > > ##PID M Elapsed LastReq Srvd Size Share VSize Rss Client >Request (first 64 chars) > 5: 22691 1 0.000s 8.34d 60K 16.1M 14.8M 19.5M 16.1M 127.0.0.2 > GET /sys-monitor > > > The 'M', 'Elapsed', 'LastReq' and 'Srvd' columns are not returning > sensible values. I'd only just started this server so the last request > cannot have taken 8days! > > It appears the the apache scoreboard is not being read correctly. Can > anyone help? Well as you've probably figured out it's not an Apache::VMonitor problem, since it doesn't do much but reading the data from Apache::Scoreboard and formatting it nicely. Does your mod_status show valid data in the extended mode? Id not it's an apache problem. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Apache::VMonitor not showing requests (might be Apache::Scoreboard problem)
Maybe adding this to your httpd.conf will help: ExtendedStatus On ?
Re: Apache VMonitor
Jason Boxman wrote: > On Tuesday 09 October 2001 06:08 am, you wrote: > >>Jason Boxman wrote: >> >>>Hey all! >>> >>> > > >>Jason, >> >>Since you've already tried to look at the code and play with it, it's >>not a VMonitor's issue, but the Scoreboard's one. I'm running all the >>latest -dev versions of modperl/apache and it works for me. >> > > Yeah, it didn't look like a VMonitor problem. > > >>>(loading /scoreboard returns three spaces to my browser and nothing >>>else.) >>> >>cauze, it returns a *binary* image. Try to grab it instead. On my setup >>it's about 538 bytes long (depends on how many children are running and >>other info, but should be definitely 100+ bytes). Try: >> >> % lynx --dump http://localhost/status/scoreboard > the_score >> > > Here where it gets weird. I got a single line of white space, that's it. > > jasonb@nebula:~$ lynx --dump http://localhost/scoreboard > the_score > -rw-r--r--1 jasonb jasonb 8 Oct 9 14:59 the_score > > Not quite sure how I could have screwed up installing Scoreboard. > > I ran > > perl Makefile.PL PREFIX=$HOME > make > make install > > No errors at all. > > My httpd.conf is setup for Scoreboard as shown in my original email. > > Did I mess that up? Is everyone else's different? > > Thanks. > > (Basically from the POD docs.) > > > SetHandler perl-script > PerlHandler Apache::Scoreboard::send > order deny,allow > deny from all > #same config you have for mod_status > allow from 127.0.0.1 > allow from 192.168.0.0/255.255.255.0 > > > > Something like that, does your mod_status works? (configure and build it first if it's not). -- _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Apache VMonitor
On Tuesday 09 October 2001 06:08 am, you wrote: > Jason Boxman wrote: > > Hey all! > > > Jason, > > Since you've already tried to look at the code and play with it, it's > not a VMonitor's issue, but the Scoreboard's one. I'm running all the > latest -dev versions of modperl/apache and it works for me. Yeah, it didn't look like a VMonitor problem. > > (loading /scoreboard returns three spaces to my browser and nothing > > else.) > > cauze, it returns a *binary* image. Try to grab it instead. On my setup > it's about 538 bytes long (depends on how many children are running and > other info, but should be definitely 100+ bytes). Try: > > % lynx --dump http://localhost/status/scoreboard > the_score Here where it gets weird. I got a single line of white space, that's it. jasonb@nebula:~$ lynx --dump http://localhost/scoreboard > the_score -rw-r--r--1 jasonb jasonb 8 Oct 9 14:59 the_score Not quite sure how I could have screwed up installing Scoreboard. I ran perl Makefile.PL PREFIX=$HOME make make install No errors at all. My httpd.conf is setup for Scoreboard as shown in my original email. Did I mess that up? Is everyone else's different? Thanks. (Basically from the POD docs.) SetHandler perl-script PerlHandler Apache::Scoreboard::send order deny,allow deny from all #same config you have for mod_status allow from 127.0.0.1 allow from 192.168.0.0/255.255.255.0
Re: Apache VMonitor
Jason Boxman wrote: > Hey all! > > I'm actually not sure if this is a VMonitor issue or a Scoreboard issue, but > here's my situation. > (... Or to jump to the point, the reason for my post is my VMonitor output > for Apache only shows partial information for the parent process and no > information for my running children... See config info and output below:) Jason, Since you've already tried to look at the code and play with it, it's not a VMonitor's issue, but the Scoreboard's one. I'm running all the latest -dev versions of modperl/apache and it works for me. > (loading /scoreboard returns three spaces to my browser and nothing else.) cauze, it returns a *binary* image. Try to grab it instead. On my setup it's about 538 bytes long (depends on how many children are running and other info, but should be definitely 100+ bytes). Try: % lynx --dump http://localhost/status/scoreboard > the_score > I hunted through the VMonitor.pm code, just to see if I could figure out > what's going on... > > for (my $i=-1; $i # handle the parent case > my $pid = ($i==-1) ? getppid() : $image->parent($i)->pid; > last unless $pid; > my $proc_mem = $gtop->proc_mem($pid); > my $size = $proc_mem->size($pid); > > I commented out the "last unless $pid" and printed out $i. It went through > 256 increments, but the output above remained the same. It seems like my > Apache::Scoreboard isn't setup properly. As you can see you can write a simple script that will reproduce your bug outside of VMonitor. > If anyone has any thoughts, I'd appreciate the help. VMonitor is a sweet > module I'd let to get working fully. :) _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Apache::VMonitor not loading..
On Wed, 26 Apr 2000, Alex Krohn wrote: > Hi! > > I'm trying to get Apache::VMonitor to load on a new mod_perl 1.23/Apache > 1.3.12/perl 5.005_03 installation. mod_perl is up and running fine, > however I can't get Apache::VMonitor working. If I add > [Wed Apr 26 16:13:45 2000] [error] Can't locate loadable object for > module Apache::Util in @INC (@INC contains: you need to build mod_perl with PERL_UTIL_API=1 or EVERYTHING=1 or DYNAMIC=1 to enable Apache::Util
Re: Apache::VMonitor not loading..
Hi, Alex > Sorry about emailing you personally, but I tried the mod_perl list with > no success. > I'm trying to get Apache::VMonitor to load on a new mod_perl 1.23/Apache > 1.3.12/perl 5.005_03 installation. mod_perl is up and running fine, > however I can't get Apache::VMonitor working. If I add > > use Apache::VMonitor; > > to my startup file, I can't start httpd, I get: > > [root@alex apache_perl]# perlctl start > [Wed Apr 26 16:13:45 2000] [error] Can't locate loadable object for module >Apache::Util in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux >/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux >/usr/lib/perl5/site_perl/5.005 . /usr/local/apache_perl/ >/usr/local/apache_perl/lib/perl) at >/usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535 > BEGIN failed--compilation aborted at >/usr/lib/perl5/site_perl/5.005/Apache/VMonitor.pm line 10. > BEGIN failed--compilation aborted at /usr/local/apache_perl/startup.pl line 11. > > Syntax error on line 38 of /usr/local/apache_perl/conf/httpd.conf: > Can't locate loadable object for module Apache::Util in @INC (@INC contains: >/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 >/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 . >/usr/local/apache_perl/ /usr/local/apache_perl/lib/perl) at >/usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535 > BEGIN failed--compilation aborted at >/usr/lib/perl5/site_perl/5.005/Apache/VMonitor.pm line 10. > BEGIN failed--compilation aborted at /usr/local/apache_perl/startup.pl line 11. > > /usr/local/apache_perl/bin/perlctl start: httpd could not be started > [root@alex apache_perl]# > > Apache::Util is installed, and everything else seems to work.. > > Any ideas where to look? > > Cheers, > > Alex > I'm sorry, I was away and didn't have a chance to answer mod_perl emails yet. I saw your post at the list. It seems that you and me have the same system. Mine is linux RH6.1 apache1.13 mod_perl1.23 perl5.005_03. And it works Ok. Your problem has nothing to do with Apache::VMonitor, since it relies on Apache::Util to work. You should post a proper bug report to the list. By proper I mean asking for help with Apache::Util and not Apache::VMonitor, so the right people will look into it. You should try this script: my $r = Apache->request; $r->send_http_header("text/html"); use Apache::Util (); print Apache::Util::escape_html(""); If this doesn't produce "" and produces the same errors, you have some problem with Apache::Util. Did 'make test' pass Ok when you have installed mod_perl? __ Stas Bekman | JAm_pH--Just Another mod_perl Hacker http://stason.org/ | mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] | http://perl.orghttp://stason.org/TULARC/ http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org --
Re: Apache::VMonitor
On Tue, 4 Apr 2000, Paul G. Weiss wrote: > Has anyone succeeded in building this for Solaris? This sounds > like an interesting module and I'd like to be able to use it. you'll have a whole lot of trouble with libgtop under solaris. last i tried with 1.0.2-ish, i had to patch the libgtop sources to get things kinda-sorta working. another release a few months ago stated that it broke solaris support in a big way. i haven't tried recently, i would suggest checking out: http://home-of-linux.org/gnome/libgtop/ try building and running some of the examples/ before going any further.
Re: Apache::VMonitor
> Has anyone succeeded in building this for Solaris? This sounds > like an interesting module and I'd like to be able to use it. Apache::VMonitor relies on GTop, GTop in turn relies on libgtop C lib. So if you get C lib compiled on Solaris, you get the rest working. See http://home-of-linux.org/gnome/libgtop/ for more info. __ Stas Bekman | JAm_pH--Just Another mod_perl Hacker http://stason.org/ | mod_perl Guide http://perl.apache.org/guide/ mailto:[EMAIL PROTECTED] | http://perl.orghttp://stason.org/TULARC/ http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org --
Re: Apache::VMonitor dumps core
>Following several messages I read on this list, I have installed > Apache::VMonitor (and mandatory 'other' packages) on my system, to look for an > annoying memory leak on my servers. >Configuration is Apache 1.3.9, mod_perl 1.21, Apache::Scoreboard 0.09, > Apache::VMonitor 0.04, GTop 0.10, libgtop 1.0.6, glib 1.2.6. Maybe I forgot > some other module. >That running on a Linux 2.2.5-15 (almost RedHat 6.0, but with some RPMs > changed for newer versions). It's a problem of Apache-Scoreboard-0.09. There is some problem with API (was it changed?). It dumps core at servers() call: for (my $i=-1; $iservers($i); } As a temporarely solution downgrade to Apache-Scoreboard-0.08. I've checked and it works. I'll check with Doug what has happened and release an update. ___ Stas Bekmanmailto:[EMAIL PROTECTED] http://www.stason.org/stas Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC perl.apache.orgmodperl.sourcegarden.org perlmonth.comperl.org single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com
RE: Apache::VMonitor in action
> > Take a look at the Apache::VMonitor in action, a moment before I'm going > > to protect it. > > > > http://www.singlesheaven.com:8080/sys-monitor > > > > Please, be gentle -- it's a production server. Thank you! > > > > BTW, It's on CPAN already > > > > Enjoy > > > > TX:packets: 90026797, bytes:-1568005074, errors:0 > RX:packets: 90026797, bytes:-1568005074, errors:0 > > You're transferring negative number of bytes? Yup, I send packets with negative polarity, it's like electricity: holes and atoms, donors and acceptors. That way my ISP pays me for using his net duct, instead of me paying him. Didn't you know that trick, you don't have to pay your electricity bills if you hack the electricity counter to rotate in the other direction... Seriously, I've noticed that. It's a bug and will be fixed in the next version... But, the NetLoad segment is not so useful, but the errors and collisions part... The top() and df() functionality is the main reason for using it. ___ Stas Bekman mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas Perl,CGI,Apache,Linux,Web,Java,PC at www.singlesheaven.com/stas/TULARC www.apache.org & www.perl.com == www.modperl.com || perl.apache.org single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com
RE: Apache::VMonitor in action
On Thursday, October 07, 1999 11:44 AM, Stas Bekman [SMTP:[EMAIL PROTECTED]] wrote: > Hi, > > Take a look at the Apache::VMonitor in action, a moment before I'm going > to protect it. > > http://www.singlesheaven.com:8080/sys-monitor > > Please, be gentle -- it's a production server. Thank you! > > BTW, It's on CPAN already > > Enjoy > TX:packets: 90026797, bytes:-1568005074, errors:0 RX:packets: 90026797, bytes:-1568005074, errors:0 You're transferring negative number of bytes? -- Eric