Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Code Profiling with Apache::DProf - Getting Error!

by vi_srikanth (Acolyte)
on Jun 07, 2007 at 08:02 UTC ( #619761=perlquestion: print w/replies, xml ) Need Help??
vi_srikanth has asked for the wisdom of the Perl Monks concerning the following question:


I am unable to use Apache::DProf! Please help.

This is what I have in httpd.conf:

  <FilesMatch "^.*\.pl$">
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlModule  Apache::DProf

  # Startup script (runs when apache starts)
  PerlRequire "/srv/spark/conf/"

If I execute a perl file through browser, I am getting the following error in the error_log:

[error] Undefined subroutine &Apache::Registry::handler called.\n

as well as getting "Internal Server Error" in the browser.

If I remove the line "PerlModule Apache::DProf" from the httpd.conf, the page is properly getting loaded in the browser without reporting any error.

Kindly help.


  • Comment on Code Profiling with Apache::DProf - Getting Error!

Replies are listed 'Best First'.
Re: Code Profiling with Apache::DProf - Getting Error!
by sen (Hermit) on Jun 07, 2007 at 09:49 UTC

    Please try this,

    Load Apache::Registry, then include the handler, before the PerlHandler Apache::Registry bit. Suggest also that you do all the module loading/startup before specifying any handlers

    eg . from my mod_perl.conf

    PerlRequire conf/ PerlFreshRestart on PerlSetVar StatusOptionsAll On PerlSetVar StatusTerse On PerlSetVar StatusTerseSize On PerlSetVar StatusTerseSizeMainSummary On Alias /perl-bin/ /usr/local/apache/mod_perl/ PerlModule Apache::DProf PerlModule Apache::Registry PerlModule B::TerseSize PerlModule Apache::Status <Location /perl-bin> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On allow from all </Location>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://619761]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2016-10-28 18:46 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (386 votes). Check out past polls.