Re: Kill signals against single process daemon with Devel::NYTProf::Apache

Raf <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wed, 18 May 2011, [email protected] 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.