On Wed, 18 May 2011, ra...@dreamthought.com wrote:

I am trying to profile mod-perl processes in a single process httpd
with Devel::NYTProf::Apache.  I use the following pattern:

* start backgrounded httpd process with start=no (explicitly enabled later
in the code)
* request url against appropriate port
* send TERM signal to apache pid
* nytproftohtml the profiled output

"Profile data incomplete, inflate error -5 ((null)) at end of input file,
perhaps the process didn't exit cleanly or the file has been truncated
(refer to T)"


Trying again in the hope that someone might be able to shed light. It appears that END blocks are not being invoked and so I explicitly placed a finish_profile() in the DESTROY method of my top level handler - this also seems to intmittently fail to be invoked.. At a loss as to why Apache is not cleanly shutting down? It appears that the cleanup phase is being skipped and the embedded intrepreter is not being cleanly exited. Has anyone witnessed this through nothing other than the injection of Devel::NYTProf::Apache (4.06) profiling.

Apache version: Apache/2.2.3
mod_perl: 2.0 (Apache2::RequestRec::VERSION - 2.000004)
interpretter: (64bit 5.8.8)
Devel::NYTProf: 4.06

Thoughts appreciated.
Thanks,

R.



Reply via email to