Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

mod_perl application profiling - Problem

by shanu_040 (Sexton)
on Apr 07, 2010 at 05:51 UTC ( #833194=perlquestion: print w/replies, xml ) Need Help??
shanu_040 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monk,

Need your help...I am try to profile mod_perl application using Devel::NYTProf::Apache.

I have edit the lines in httpd.conf explained in documentation.
<IfDefine NYTPROF> MaxClients 1 PerlPassEnv NYTPROF PerlModule Devel::NYTProf::Apache </IfDefine>
And Following in /etc/profile
NYTPROF=addpid=1:trace=2:log=/home/amit/nytlog:start=init:file=/home/a +mit/nytprof.out:compress=1 export NYTProf

And Start the server using "httpd -D NYRPROF"

I run my application and stop the server using "service httpd stop"

When I run "nytprofhtml" alone it says "/usr/bin/nytprofhtml: Unable to access nytprof.out"

But when I run "nytprofhtml -f /home/amitnytprof.out.3851"
# trace=2
Generating report...
Reading /home/amit/nytprof.out.3851
Error reading file: inflate failed, error -5 ((null)) at end of input file, perhaps the process didn't exit cleanly or the file has been truncated at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Devel/NYTProf/ line 82.
It gives the forementioned error.
Can anybody help me?

Replies are listed 'Best First'.
Re: mod_perl application profiling - Problem
by cLive ;-) (Prior) on Oct 14, 2016 at 21:03 UTC

    Late to the party here, but are you using Apache::SizeLimit? I was finding that was cutting down attempts to use NYTProf.

    I'm sure you worked it out, but figured I'd comment in case anyone else was having issues.

Re: mod_perl application profiling - Problem
by jethro (Monsignor) on Apr 07, 2010 at 09:11 UTC
Re: mod_perl application profiling - Problem
by Anonymous Monk on Apr 07, 2010 at 11:14 UTC
    Hi, Following is the environment: perl: 5.8.8
    Devel::NYTProf: 3.11

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://833194]
Approved by Corion
[Discipulus]: Tomas in greek ~140Ad
[Discipulus]: also the 'today bred' was probably 'tomorrow's bred'
[LanX]: Novum Testamentum Graece
[erix]: "give us today our bread from tomorrow" -- that's not going to fly
[choroba]: "for tomorrow"
[Discipulus]: Let's perl: from cpan website how can thou/you tell how many namespaces are beyond App::* ?
[choroba]: Map of CPAN
[LanX]: cpan serach?
[Discipulus]: about bred: 'let our bred levitate (well)'
[Discipulus]: I love maps!

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-11-23 20:50 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (338 votes). Check out past polls.