Issue we are facing with Profinling our Mod Perl App

Issue we are facing with Profinling our Mod Perl App

am 04.05.2011 16:58:58 von Mohammed Shakir

--0015176f0ca811e98804a2747f3d
Content-Type: text/plain; charset=ISO-8859-1

Hi,

We are using the standard CPAN module, Devel::NYTProf::Apache for profiling
our mod_perl App. We have set it up as follows :

1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf file.
2) Restarted Apache with a Single Process with the command line option -X.
Then, Apache 'Segfaults' (Segmentation fault).

As a result I used Core dumping with Apache and checked with 'gdb' but
nothing useful found(Perhaps there is more to check that I am not aware at
the moment).

Note also that,

1) we restarted Apache normally(with more than one child processes), then it
just 'runs' as usual and when I checked the
Exit Status, it was normal(0), but there was no httpd processes running.

2) I checked with both NYTPROF variable set and without setting it(in which
case it will default to /tmp/nytprof.$$.out).

3) checked with various trace levels, when it is zero it segfaults asap, if
it is 1 it prints some then segfaults and if it is 2 it prints some more
then segfaults, etc etc. ( I checked upto level 3 of trace so far.)

Thanks and Regards
Mohammed.

--0015176f0ca811e98804a2747f3d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

We are using the standard CPAN module, Devel::NYTProf::Apache fo=
r profiling our mod_perl App. We have set it up as follows :


1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf=
file.
2) Restarted Apache with a Single Process with the command line o=
ption -X. Then, Apache 'Segfaults' (Segmentation fault).



As a result I used Core dumping with Apache and checked with 'gdb' =
but=20
nothing useful found(Perhaps there is more to check that I am not aware=20
at the moment).

Note also that,

1) we restarted Apache normal=
ly(with more than one child processes), then it just 'runs' as usua=
l and when I checked the

   Exit Status, it was normal(0), but there was no httpd processes runn=
ing.

2) I checked with both NYTPROF variable set and without setting=
it(in which case it will default to /tmp/nytprof. >$$.out).



3) checked with various trace levels, when it is zero it segfaults=20
asap, if it is 1 it prints some then segfaults and if it is 2 it prints=20
some more then segfaults, etc etc. ( I checked upto level 3 of trace so=20
far.)


Thanks and Regards
Mohammed.


--0015176f0ca811e98804a2747f3d--

Re: Issue we are facing with Profinling our Mod Perl App

am 05.05.2011 22:43:38 von Perrin Harkins

Hi,

> 1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf file.
> 2) Restarted Apache with a Single Process with the command line option -X.
> Then, Apache 'Segfaults' (Segmentation fault).

Does your app work under -X without NYTProf?

My first suggestion would be to use the most up-to-date versions of
NYTProf, apache, perl, and mod_perl that you can. If the problem
persists, you'll probably need to contact the author of Devel::NYTProf
and provide a backtrace.

- Perrin

Re: Issue we are facing with Profinling our Mod Perl App

am 06.05.2011 02:47:29 von Cosimo Streppone

On Thu, 05 May 2011 00:58:58 +1000, Mohammed Shakir
wrote:

> We are using the standard CPAN module, Devel::NYTProf::Apache for
> profiling our mod_perl App. We have set it up as follows :
>
> [...]
>
> Then, Apache 'Segfaults' (Segmentation fault).

Hi Mohammed,

you don't seem to mention your OS or Apache version or
Perl version, so this might be totally unrelated,
but...

Make sure you have Class::XSAccessor at least v1.11.
For more details:

http://my.opera.com/cstrep/blog/ubuntu-10-10-modperl-and-apa che-segfaulting

--
Cosimo