On Mon, 20 Aug 2001, matt wrote:

> Hi list,
>
> I'm having a problem that seems to have come up a few times before,
> but mine seems to be a little different.
>
> I am getting hundreds of 'Subroutine xxxx redefined' in my Apache
> error_log. The amount of messages I get changes frequently and so far I
> have not been able to relate it to anything. Sometimes I only get the
> messages at startup, but currently I get about 300 messages per page
> request.
>
> I am using Apache::Reload and from other posts it looks like
> getting redefined messages is expected behaviour. However, when
> I no longer use Apache::Reload, I still get the copious logging,
> which I obviously want to get rid of before going to production.
>
> Here is an excerpt from my httpd.conf:
>
> PerlWarn On
> PerlInitHandler Apache::Reload
> PerlSetVar ReloadModules "Testing::*"
> PerlSetVar ReloadAll On
>
> PerlSetEnv modulepath '/nutter/data/perl/'
> PerlModule Testing::Handler::Handler
> PerlModule Apache::DBI
>
> Also of note is that the Handler uses a Loader module, which iterates
> through all the modules in some paths and requires them all. This is
> so we can avoid the maintainance of having to add more use's when we
> add a new object to the hierarchy. Some modules that are included in
> this iterative require also use the Loader.  This should be fine,
> as require 'demands that a library file be included if it hasn't
> already been included'.
>
> Is it possible that things are getting messed up here because of the
> modperl environment?
>
> Any other ideas?

What's this Loader? Does it do some File::Find dirs traversing and
automatically loads the files it finds?

Anyway why do use Apache::Reload in production?

Also you don't want to have PerlWarn On in production.

See the guide for more info.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://localhost/      http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to