You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by kevin montuori <mo...@arrakisplanet.com> on 2000/10/02 17:02:04 UTC
Apache::Filter/::RegistryFilter/::Compress problem.
folks --
i'm wondering if anyone else has seen the following behaviour, and,
if you have, how you dealt with it. here's the problem:
i have a bunch (200 or so) CGI scripts being handled by
Apache::RegistryFilter then Apache::Compress, i.e.,
<FilesMatch "\.(cgi|pl)$">
SetHandler perl-script
PerlSetVar Filter On
PerlHandler Apache::RegistryFilter Apache::Compress
</FilesMatch>
this typically works very well; however, on occasion i get the
following error (reformatted):
[Sun Oct 1 21:19:49 2000] [error] [Sun Oct 1 21:19:49 2000]
null: Undefined subroutine &Apache::RegistryFilter::handler
called at
/usr/local/lib/perl5/site_perl/5.005/Apache/Compress.pm line 37.
following this, any further registry requests made to this apache
process result in this error. here are some details:
- it isn't the case that only one or two CGI scripts cause this
error; there is no clear culprit.
- MaxRequestsPerChild is set to 10.
- the request that first causes this error takes a long time (300
seconds or more) to complete.
- this error only occurs on perhaps 3 requests in every 50k.
- apache v1.3.9 on solaris 2.6
modperl 1.21
Apache::Filter 1.011
Apache::Compress 1.002
thanks for any suggestions, i appreciate your time.
cheers,
k.
--
kevin montuori
Re: Apache::Filter/::RegistryFilter/::Compress problem.
Posted by kevin montuori <mo...@arrakisplanet.com>.
>>> Ken Williams writes:
kw> Do you also have config lines like
kw> PerlModule Apache::RegistryFilter
kw> PerlModule Apache::Compress
kw> somewhere in the config file? You should.
i don't; i've been letting mod_perl do its own thing there.
i'll make that change.
kw> Other than that, is the filtering setup working okay?
indeed. it's pretty excellent how much of a performance kick
compressing the content gets you. furthermore, i like the
apache::filter API (such as it is) -- it's been trivial to write
custom filters.
thanks for your help.
cheers,
k.
--
kevin montuori
support independent booksellers -- http://www.booksense.com
Re: Apache::Filter/::RegistryFilter/::Compress problem.
Posted by kevin montuori <mo...@arrakisplanet.com>.
>>> Matt Sergeant writes:
ms> On Mon, 2 Oct 2000, kevin montuori wrote:
>> i'm wondering if anyone else has seen the following behaviour,
>> and, if you have, how you dealt with it. [...]
ms> Do you have StatINC in that mix anywhere?
i do not. should i?
k.
--
kevin montuori
support independent booksellers -- http://www.booksense.com
Re: Apache::Filter/::RegistryFilter/::Compress problem.
Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 2 Oct 2000, kevin montuori wrote:
>
>
> folks --
>
> i'm wondering if anyone else has seen the following behaviour, and,
> if you have, how you dealt with it. here's the problem:
>
> i have a bunch (200 or so) CGI scripts being handled by
> Apache::RegistryFilter then Apache::Compress, i.e.,
>
> <FilesMatch "\.(cgi|pl)$">
> SetHandler perl-script
> PerlSetVar Filter On
> PerlHandler Apache::RegistryFilter Apache::Compress
> </FilesMatch>
>
> this typically works very well; however, on occasion i get the
> following error (reformatted):
>
> [Sun Oct 1 21:19:49 2000] [error] [Sun Oct 1 21:19:49 2000]
> null: Undefined subroutine &Apache::RegistryFilter::handler
> called at
> /usr/local/lib/perl5/site_perl/5.005/Apache/Compress.pm line 37.
Do you have StatINC in that mix anywhere?
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org
Re: Apache::Filter/::RegistryFilter/::Compress problem.
Posted by Ken Williams <ke...@forum.swarthmore.edu>.
montuori@arrakisplanet.com (kevin montuori) wrote:
> i'm wondering if anyone else has seen the following behaviour, and,
> if you have, how you dealt with it. here's the problem:
>
> i have a bunch (200 or so) CGI scripts being handled by
> Apache::RegistryFilter then Apache::Compress, i.e.,
>
> <FilesMatch "\.(cgi|pl)$">
> SetHandler perl-script
> PerlSetVar Filter On
> PerlHandler Apache::RegistryFilter Apache::Compress
> </FilesMatch>
Hi Kevin,
Do you also have config lines like
PerlModule Apache::RegistryFilter
PerlModule Apache::Compress
somewhere in the config file? You should. If you don't, I think
mod_perl does some magical loading of modules you need (I'm not even
sure of that, since I always load the modules explicitly), but it might
get messed up when new children are created or something.
Other than that, is the filtering setup working okay?
------------------- -------------------
Ken Williams Last Bastion of Euclidity
ken@forum.swarthmore.edu The Math Forum