perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreeji K Das <sreej...@yahoo.com>
Subject PerlFreshRestart (Was: Re: Apache::Symbol-calling <none>->can('undef_functions'))
Date Fri, 08 Feb 2002 05:03:11 GMT
Hi 
True, I had already read that doc & also the
'Namespace' collision docs. However, there's no name
space collission in my scripts since:
1) The entire code with same config. works with old
mod_perl+perl+apache combo.
2) The errors that I get are like 'Undefined
subroutine &File::Basename::basename called at ...'
Just before this if I check
File::Basename->can('basename') I get true & if check
%INC, File/Basename.pm exists there. I also did an
explict symbol table check (using glob) & found that
the function is there ! But funnily perl says it's
undefined subroutine ! The actual module & method
names change randomly, even if I run with -X !
 
As for Apache::Reload, the problem is it's going to
stat all the files, which I don't want. Alternatively,
I'll have to put use Apcahe::Reload, which again is a
problem, since I have to modify many files & they all
would be unnecessarily stat'ed. I just want Apache to
load all the modules, when I give a USR1 - I'm really
stuck at this !
(Another option I read somewhere is to compile
mod_perl as a DSO, in which case for every restart the
entire perl interp. is torn down & reloaded - may be
I'll look into that)

Thanx
Sreeji

--- Geoffrey Young <geoff@modperlcookbook.org> wrote:
> Sreeji K Das wrote:
> > 
> > Hi
> > 
> > Well, it's only a small part of my big problem :-(
> > I'm trying to get PerlFreshRestart working. I had
> been
> > banging my head against it for almost 5 days & I
> was
> > thinking about preparing a small test case &
> posting.
> > 
> > Well I want apache to load all my perl stuff on
> > restart (USR1) - so I enabled PerlFreshRestart (I
> > don't want Apache to stat modules on every
> request).
> > Since I was getting 'subroutine redefined'
> warnings, I
> > had put
> > 'PerlRestartHandler Apache::Symbol' - you got the
> > reason for the problem ?
> > 
> > I'm having hell lot of problems with
> PerlFreshRestart.
> 
> you will :)  see 
> 
>
http://perl.apache.org/guide/troubleshooting.html#Evil_things_might_happen_when_us
> 
> and the rest of the guide for more details.
> 
> just FYI, but Apache::Reload is much better at
> reloading scripts, and
> has features that can do pretty much what you want.
> 
> HTH
> 
> --Geoff 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Mime
View raw message