Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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
[Corion]: We-ird - I hadn't known this, but Ingress and Pokemon Go (both AR games in the real world where you run around) switched from using Google Maps to OpenStreetMaps, which is great. But I wonder why, as Ingress is (was?) owned by Google/Alphabet. But ...
[Corion]: ... maybe not wholly owned, or the load on Google Maps was too high?!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2018-03-19 09:06 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (236 votes). Check out past polls.