You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Igor Chudov <ic...@gmail.com> on 2009/08/25 17:09:06 UTC

At random moments, mod_perl starts returning empty pages

My website algebra.com has been moved to a new server running Ubuntu Hardy.

While everything seems to be working well, esp. the kernel and solid state
disk, I have one issue.

The issue is that at random moments, usually once or twice a day, my
webserver starts returning completely empty pages instead of actual content.
The pages are mod_perl based.

I tried restarting apache every 30 minutes, but it does not help. It appears
to be a random issue as opposed to a "server getting tired" issue.

I have a cron job that checks my webserver every 5 minutes and restarts it
when necessary, but obviously I hate the situation and would like to fix it.


Any pointers to get started would be appreciated.

Igor

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
Perrin, the pages are zero length. In my script that checks for this
condition, if I find trouble I save a few webpages to files.
(/, some other page and apache-status). The first two are zero length.

Igor


On Tue, Aug 25, 2009 at 12:14 PM, Perrin Harkins <ph...@gmail.com> wrote:

> On Tue, Aug 25, 2009 at 1:07 PM, Igor Chudov<ic...@gmail.com> wrote:
> > Nothing much is in error_log, I do print some of my outputs, but nothing
> of
> > interest.
> >
> > What I know is that I can retrieve www.algebra.com/apache-status, it
> works
> > fine.
> >
> > However, retrieving mod_perl pages returns empty pages.
>
> If you mean that they don't render in the browser, it would help if
> you look at the content being sent instead.  It must be sending
> something, or you'd get a timeout error.
>
> - Perrin
>

Re: At random moments, mod_perl starts returning empty pages

Posted by Perrin Harkins <ph...@gmail.com>.
On Tue, Aug 25, 2009 at 1:07 PM, Igor Chudov<ic...@gmail.com> wrote:
> Nothing much is in error_log, I do print some of my outputs, but nothing of
> interest.
>
> What I know is that I can retrieve www.algebra.com/apache-status, it works
> fine.
>
> However, retrieving mod_perl pages returns empty pages.

If you mean that they don't render in the browser, it would help if
you look at the content being sent instead.  It must be sending
something, or you'd get a timeout error.

- Perrin

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
Nothing much is in error_log, I do print some of my outputs, but nothing of
interest.

What I know is that I can retrieve www.algebra.com/apache-status, it works
fine.

However, retrieving mod_perl pages returns empty pages.

Igor

On Tue, Aug 25, 2009 at 11:14 AM, Perrin Harkins <ph...@gmail.com> wrote:

> On Tue, Aug 25, 2009 at 11:09 AM, Igor Chudov<ic...@gmail.com> wrote:
> > The issue is that at random moments, usually once or twice a day, my
> > webserver starts returning completely empty pages instead of actual
> content.
>
> What's in the error_log?
>
> - Perrin
>

Re: At random moments, mod_perl starts returning empty pages

Posted by Perrin Harkins <ph...@gmail.com>.
On Tue, Aug 25, 2009 at 11:09 AM, Igor Chudov<ic...@gmail.com> wrote:
> The issue is that at random moments, usually once or twice a day, my
> webserver starts returning completely empty pages instead of actual content.

What's in the error_log?

- Perrin

Re: At random moments, mod_perl starts returning empty pages

Posted by Michael Peters <mi...@gmail.com>.
Fred Moyer wrote:

>> The issue is that at random moments, usually once or twice a day, my
>> webserver starts returning completely empty pages instead of actual content.
>> The pages are mod_perl based.

I've seen this happen sometimes when something segfaults. And segfaults are 
usually the result of having incompatible binaries/libs on your system. Is there 
anything in your error logs about this?

-- 
michael peters

I played golf... I did not get a hole in one, but I did hit a guy. That's way 
more satisfying. - Mitch Hedberg

Re: At random moments, mod_perl starts returning empty pages

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Tue, Aug 25, 2009 at 8:09 AM, Igor Chudov<ic...@gmail.com> wrote:
> My website algebra.com has been moved to a new server running Ubuntu Hardy.
>
> While everything seems to be working well, esp. the kernel and solid state
> disk, I have one issue.
>
> The issue is that at random moments, usually once or twice a day, my
> webserver starts returning completely empty pages instead of actual content.
> The pages are mod_perl based.
>
> I tried restarting apache every 30 minutes, but it does not help. It appears
> to be a random issue as opposed to a "server getting tired" issue.
>
> I have a cron job that checks my webserver every 5 minutes and restarts it
> when necessary, but obviously I hate the situation and would like to fix it.
>
> Any pointers to get started would be appreciated.

Please post your version details, and the relevant sections of httpd.conf.

Have you witnessed this?  Are you able to get any server response headers?

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
On Tue, Aug 25, 2009 at 8:50 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:

>
> > My plan is to:
> >
> > 1) Remove ubuntu mod_perl package
> > 2) Do make install
> > 3) test
> >
> > If test succeeds, I will stop. If test fails, I would reinstall the
> system
> > mod_perl.
> >
> > Is that a safe plan?
>
> I'd try this on a test server first (which ideally is a replicate of
> your production environment.
>
> Best thing to do is have a rollback plan IMHO.
>

Yes, the above was what I would consider a rollback plan.

I will indeed try it first on a non-production server.

I have some news regarding this that I will post in a separate message.

Re: At random moments, mod_perl starts returning empty pages

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Tue, Aug 25, 2009 at 1:07 PM, Igor Chudov<ic...@gmail.com> wrote:
>> > The risks involved are kind of big here. So I want to be safe and have a
>> > good plan.
>>
>> Suggest building this side by side with your existing installation.
>> Suggest testing this out first on your test environment.
>
> OK, I did build it, it was nice.
>
> My plan is to:
>
> 1) Remove ubuntu mod_perl package
> 2) Do make install
> 3) test
>
> If test succeeds, I will stop. If test fails, I would reinstall the system
> mod_perl.
>
> Is that a safe plan?

I'd try this on a test server first (which ideally is a replicate of
your production environment.

Best thing to do is have a rollback plan IMHO.

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
On Tue, Aug 25, 2009 at 2:24 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:

> Igor,
>
> Please cc the mod_perl list on all replies.  I'm available for
> professional mod_perl consulting offlist, but I don't come cheap :)
>

Sorry, I pressed a wrong button in GMail. :)


>
> On Tue, Aug 25, 2009 at 12:14 PM, Igor Chudov<ic...@gmail.com> wrote:
> >
> >
> > On Tue, Aug 25, 2009 at 2:07 PM, Fred Moyer <fr...@redhotpenguin.com>
> wrote:
> >>
> >> > *** mod_perl version 2.000003
> >>
> >> Suggest trying 2.0.4.  If that still exhibits the problem, suggest
> >> pulling a copy of subversion trunk and trying that.  I'm currently
> >> running trunk on my servers (very stable).
> >
> > Fred, I have not compiled mod_perl in ~4 years.
> >
> > What is the process  here, do I just download tarball and do configure
> and
> > install? Is it any trickier?
>
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html
>
> > The risks involved are kind of big here. So I want to be safe and have a
> > good plan.
>
> Suggest building this side by side with your existing installation.
> Suggest testing this out first on your test environment.
>

OK, I did build it, it was nice.

My plan is to:

1) Remove ubuntu mod_perl package
2) Do make install
3) test

If test succeeds, I will stop. If test fails, I would reinstall the system
mod_perl.

Is that a safe plan?

Thank you.

Igor

Re: At random moments, mod_perl starts returning empty pages

Posted by Fred Moyer <fr...@redhotpenguin.com>.
Igor,

Please cc the mod_perl list on all replies.  I'm available for
professional mod_perl consulting offlist, but I don't come cheap :)

On Tue, Aug 25, 2009 at 12:14 PM, Igor Chudov<ic...@gmail.com> wrote:
>
>
> On Tue, Aug 25, 2009 at 2:07 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:
>>
>> > *** mod_perl version 2.000003
>>
>> Suggest trying 2.0.4.  If that still exhibits the problem, suggest
>> pulling a copy of subversion trunk and trying that.  I'm currently
>> running trunk on my servers (very stable).
>
> Fred, I have not compiled mod_perl in ~4 years.
>
> What is the process  here, do I just download tarball and do configure and
> install? Is it any trickier?

http://perl.apache.org/docs/2.0/user/intro/start_fast.html

> The risks involved are kind of big here. So I want to be safe and have a
> good plan.

Suggest building this side by side with your existing installation.
Suggest testing this out first on your test environment.

Re: At random moments, mod_perl starts returning empty pages

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Tue, Aug 25, 2009 at 12:05 PM, Igor Chudov<ic...@gmail.com> wrote:
>
>
> On Tue, Aug 25, 2009 at 12:16 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:
>>
>> One great tool that would help with the diagnosis is the very useful
>> mp2bug, found in mod_perl-2.0/bin/mp2bug
>>
>> Can you run that from your mod_perl install and post the output?
>> Version details are a huge clue in solving mysteries like this.
>>
>
> Fred, thanks. here goes.
>
>
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
>   [DESCRIBE THE PROBLEM HERE]
>
> 2. Used Components and their Configuration:
>
> *** mod_perl version 2.000003

Suggest trying 2.0.4.  If that still exhibits the problem, suggest
pulling a copy of subversion trunk and trying that.  I'm currently
running trunk on my servers (very stable).


>
> *** using /usr/lib/perl5/Apache2/BuildConfig.pm
>
> *** Makefile.PL options:
>   MP_APR_LIB     => aprext
>   MP_APXS        => /usr/bin/apxs2
>   MP_CCOPTS      => -g -Wall
>   MP_COMPAT_1X   => 1
>   MP_GENERATE_XS => 1
>   MP_INCLUDE_DIR => /usr/include/apache2 /usr/include/apr-1.0
>   MP_LIBNAME     => mod_perl
>   MP_TRACE       => 0
>   MP_USE_DSO     => 1
>   MP_USE_GTOP    => 1
>   MP_USE_STATIC  => 0
>
>
> *** The httpd binary was not found
>
>
> *** (apr|apu)-config linking info
>
> (apr|apu)-config scripts were not found
>
>
>
> *** /usr/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
>   Platform:
>     osname=linux, osvers=2.6.24-19-server,
> archname=i486-linux-gnu-thread-multi
>     uname='linux palmer 2.6.24-19-server #1 smp sat jul 12 00:40:01 utc 2008
> i686 gnulinux '
>     config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
> -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr
> -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8
> -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5
> -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.8
> -Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1
> -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1
> -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl
> -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm
> -Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64',
>     optimize='-O2',
>     cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include'
>     ccversion='', gccversion='4.2.3 (Ubuntu 4.2.3-2ubuntu7)',
> gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
>     alignbytes=4, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
>     perllibs=-ldl -lm -lpthread -lc -lcrypt
>     libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
>     gnulibc_version='2.7'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>     cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
>                         PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
>                         USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
>   Built under linux
>   Compiled at Jan 14 2009 22:34:36
>   %ENV:
>
> PERL5LIB="/home/ichudov/misc/life/modules:/home/ichudov/lisleelectric.com"
>
> PERLLIB="/home/ichudov/misc/life/modules:/home/ichudov/lisleelectric.com"
>     PERL_LWP_USE_HTTP_10="1"
>   @INC:
>     /home/ichudov/misc/life/modules
>     /home/ichudov/lisleelectric.com
>     /etc/perl
>     /usr/local/lib/perl/5.8.8
>     /usr/local/share/perl/5.8.8
>     /usr/lib/perl5
>     /usr/share/perl5
>     /usr/lib/perl/5.8
>     /usr/share/perl/5.8
>     /usr/local/lib/site_perl
>     .
>
> *** Packages of interest status:
>
> Apache2            : -
> Apache2::Request   : -
> CGI                : 3.15
> ExtUtils::MakeMaker: 6.30_01, 6.54
> LWP                : 5.808
> mod_perl           : -
> mod_perl2          : 2.000003
>
>
> 3. This is the core dump trace: (if you get a core dump):
>
>   [CORE TRACE COMES HERE]
>
> This report was generated by /usr/share/libapache2-mod-perl2/mp2bug on Tue
> Aug 25 19:04:41 2009 GMT.
>
> -------------8<---------- End Bug Report --------------8<----------
>
>
>
>
>

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
On Tue, Aug 25, 2009 at 12:16 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:

> One great tool that would help with the diagnosis is the very useful
> mp2bug, found in mod_perl-2.0/bin/mp2bug
>
> Can you run that from your mod_perl install and post the output?
> Version details are a huge clue in solving mysteries like this.
>
>
Fred, thanks. here goes.


-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

  [DESCRIBE THE PROBLEM HERE]

2. Used Components and their Configuration:

*** mod_perl version 2.000003

*** using /usr/lib/perl5/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/bin/apxs2
  MP_CCOPTS      => -g -Wall
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_INCLUDE_DIR => /usr/include/apache2 /usr/include/apr-1.0
  MP_LIBNAME     => mod_perl
  MP_TRACE       => 0
  MP_USE_DSO     => 1
  MP_USE_GTOP    => 1
  MP_USE_STATIC  => 0


*** The httpd binary was not found


*** (apr|apu)-config linking info

(apr|apu)-config scripts were not found



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.24-19-server,
archname=i486-linux-gnu-thread-multi
    uname='linux palmer 2.6.24-19-server #1 smp sat jul 12 00:40:01 utc 2008
i686 gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
-Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr
-Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5
-Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.8
-Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm
-Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.2.3 (Ubuntu 4.2.3-2ubuntu7)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
    gnulibc_version='2.7'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Built under linux
  Compiled at Jan 14 2009 22:34:36
  %ENV:
    PERL5LIB="/home/ichudov/misc/life/modules:/home/ichudov/
lisleelectric.com"
    PERLLIB="/home/ichudov/misc/life/modules:/home/ichudov/lisleelectric.com
"
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /home/ichudov/misc/life/modules
    /home/ichudov/lisleelectric.com
    /etc/perl
    /usr/local/lib/perl/5.8.8
    /usr/local/share/perl/5.8.8
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/lib/site_perl
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.15
ExtUtils::MakeMaker: 6.30_01, 6.54
LWP                : 5.808
mod_perl           : -
mod_perl2          : 2.000003


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by /usr/share/libapache2-mod-perl2/mp2bug on Tue
Aug 25 19:04:41 2009 GMT.

-------------8<---------- End Bug Report --------------8<----------

Re: At random moments, mod_perl starts returning empty pages

Posted by Fred Moyer <fr...@redhotpenguin.com>.
One great tool that would help with the diagnosis is the very useful
mp2bug, found in mod_perl-2.0/bin/mp2bug

Can you run that from your mod_perl install and post the output?
Version details are a huge clue in solving mysteries like this.

On Tue, Aug 25, 2009 at 10:10 AM, Igor Chudov<ic...@gmail.com> wrote:
>
>
> On Tue, Aug 25, 2009 at 10:50 AM, Frank Wiles <fr...@wiles.org> wrote:
>>
>>
>> > I am afraid that it is hard to reproduce. Since I run ads and such, I
>> > cannot
>> > really afford to pause for very long to debug the issue, plus it happens
>> > randomly. My 5 minute restarter saves me from a very big trouble
>>
>> No of course, that's why I suggested running it on a higher port and
>> leaving your production site alone.  Just to isolate the problem down
>> as small as possible.  (i.e. no perlbal, single apache process, no
>> other users, etc. ) to see if you can narrow down what piece of the
>> puzzle is the one causing the issue.
>>
>> Frank, I tried to run apache2 -X and did thousands of queries, they did
>> not break anything. It is "something else".
>
> Re: segfaults: I do get segfaults in apache, indeed.
>
> Re: httpd config file: See attached. It is kind of big.
>

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
On Tue, Aug 25, 2009 at 10:50 AM, Frank Wiles <fr...@wiles.org> wrote:

>
>
> > I am afraid that it is hard to reproduce. Since I run ads and such, I
> cannot
> > really afford to pause for very long to debug the issue, plus it happens
> > randomly. My 5 minute restarter saves me from a very big trouble
>
> No of course, that's why I suggested running it on a higher port and
> leaving your production site alone.  Just to isolate the problem down
> as small as possible.  (i.e. no perlbal, single apache process, no
> other users, etc. ) to see if you can narrow down what piece of the
> puzzle is the one causing the issue.
>
> Frank, I tried to run apache2 -X and did thousands of queries, they did not
> break anything. It is "something else".
>

Re: segfaults: I do get segfaults in apache, indeed.

Re: httpd config file: See attached. It is kind of big.

Re: At random moments, mod_perl starts returning empty pages

Posted by Igor Chudov <ic...@gmail.com>.
On Tue, Aug 25, 2009 at 10:32 AM, Frank Wiles <fr...@wiles.org> wrote:

>
> Hmmm, that's a difficult situation to debug.  Are you running anything
> in front of apache/mod_perl like perlbal or nginx?  If so, those might
> be the cause.
>

I am running perlbal in front of apache, yes. perlbal is a complete
lifesaver for me, because my site is high traffic and perlbal takes care of
lingering prowsers and such, to keep the number of my apache processes down.

When I restart apache, I do not restart perlbal. I use perlbal everywhere,
including on my old Fedora server, and it seems to be very stable.


>
> My suggestion would be to run a separate instance of your app on a
> high port with a single apache instance and see if you can find a way
> to reliably reproduce the problem. Then, if there isn't anything
> useful in the error log, use the debugger to step through the code as
> you reproduce the issue from the browser.
>
>
I am afraid that it is hard to reproduce. Since I run ads and such, I cannot
really afford to pause for very long to debug the issue, plus it happens
randomly. My 5 minute restarter saves me from a very big trouble