Re: Apache::DProf giving empty tmon.out files
Alx G wrote:[color=blue]
> I'm trying to use Apache::DProf with my Perl web app. I can't work out
> what I'm doing wrong - it should be working but it isn't (how many times
> have we all said that to ourselves eh?).
> I've run out of options to try now, I hope someone can help me please.
> ... <snip> ...
> I tried with and without the commented stuff - as was suggested in this
> Apache is running in prefork, *not* worker mode (which was also pointed to
> as a possible culprit)
> /usr/sbin/httpd -V :
> Server MPM: Prefork
> threaded: no
> forked: yes (variable process count)
> The tmon.out files *are*being created, by the apache user, but they don't
> contain any useful info. I've also tried running apache using the -X
> command to spawn no child processes.
> I then hit a few different scripts in the browser and the most I ever see
> in those files, when shutting down apache is a reference to APR::Pool
> DESTROY and the usual stuff at the top, *but no other subroutine calls at
Sincere thanks to everyone who has offered advice and suggestions, I've
still not quite managed to get it working - I feel like there's probably
something really obvious staring me in the face.
As a last ditch effort I thought I'd post an abridged version of my current
apache config in the hope that someone spots something crazy.
.... load various modules ...
LoadModule perl_module modules/mod_perl.so
ErrorDocument 404 /cgi-bin/404handler.pl
CustomLog logs/myapp_access_log combined
Allow from all
SetEnv SYBASE /usr
# PerlHandler ModPerl::RegistryPrefork # tried this also, no change
# PerlFixupHandler Apache::DB # tried this, just filled up my error log
with very low-level mod_perl calls, page didn't load, nothing in tmon.out
(pages work fine without it)
.... more misc config stuff ...
And this is the most I ever see in tmon.out:
# All values are given in HZ
$over_utime=5; $over_stime=2; $over_rtime=17;
$rrun_utime=86; $rrun_stime=111; $rrun_rtime=2971;
@ 0 0 1
& 2 APR::Pool DESTROY
@ 86 111 2970
Thanks again for your time.
View this message in context: [url]http://www.nabble.com/Apache%3A%3ADProf-giving-empty-tmon.out-files-tp7265235p15039276.html[/url]
Sent from the mod_perl - General mailing list archive at Nabble.com.