Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to use Devel::NYTProf on Apache

by bliako (Monsignor)
on Mar 06, 2020 at 23:52 UTC ( [id://11113922]=note: print w/replies, xml ) Need Help??


in reply to How to use Devel::NYTProf on Apache

probably a nytprof.out.XXX file for each CGI script spanwed with a PID of XXX? Try a different output dir, files in /tmp are in the death row. Otherwise do your profiling or copy the files elsewhere while the beast is still alive (but hypernating).

Oftentimes you just can't beat the beast

(friday night bonus: unless you use a steely knife).

Edit: these may be helpful: Using Devel::NYTProf with CGI::Application, https://wiki.koha-community.org/wiki/Profiling_with_Devel::NYTProf

bw, bliako

Replies are listed 'Best First'.
Re^2: How to use Devel::NYTProf on Apache
by feumw (Sexton) on Mar 09, 2020 at 06:26 UTC
    I thought about changing the output directory aswell on Friday, and so did I. Now I have the nytprod.out.xxx files on a different spot and they won't dissappear when I stop the webserver. Now I have to see how/what can I do with them. Unfortunately nytprofhtml still doesn't work with those files:
    Reading nytprof.out Failed to open input 'nytprof.out': No such file or directory at /usr/ +local/lib64/perl5/Devel/NYTProf/Data.pm line 87.

      What is the actual invocation you are using? If the files look like nytprof.out.123 then you need to use the -f flag, e.g. nytprofhtml -f nytprof.out.123 . More details are at nytprofhtml.

      It is probably also worth looking at the Apache specific docs in Devel::NYTProf::Apache as it seems not to have been mentioned thus far. (I have never used it, though).

      There is also nytprofmerge if you have multiple output files and want to combine the results.

        I used nytprofhtml nytprof.out.123 so far. Maybe nytprofmerge can help me out. so far I'm getting Profile format error: token 54 ('6'), chunk 505, pos 16080 (see TROUBLESHOOTING in NYTProf docs) at /usr/local/lib64/perl5/Devel/NYTProf/Data.pm line 87. but I haven't researched it yet. Currently I'm doing a small excursion taking a look on my apache-logs. I'll head on this issue later again. I still hope I'll get this running.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found