Hi All, I have recently started having a few issues on our mod_perl/apache server.
Software that has been functioning fine has suddenly randomly started giving errors like: ======================================================== Error: 'newsletter' could not be loaded... (Can't locate object method "new" via package "NetChant::Component::Newsletter::Main" at /opt/netchant/lib/NetChant/Component/Base.pm line 832. ): Could not load component: Can't locate File/Temp.pm in @INC (@INC contains: ... [.. snip very long list ..] ======================================================== We have noticed this error about half a dozen times in the past day, and stopping the server and starting it again (a full stop/start) *always* fixes the problem. In the above case, it was saying it could not find File/Temp.pm ... however, the module it can't find varies from time to time... We do have a lot of modules being loaded into memory (which i assume mod_perl is caching in memory)... we do have 3gigs of memory on the machine, only 2gigs of which are usually being used (even when we get the errors). Other parts of the software still work fine... only certain parts give errors like the above (and they keep consistently giving the error until the server is restarted, at which point they start to function perfectly again). Given the above, i'm thinking that its a memory cache issue? Has any experience anything like the above? Any hints on how to either debug the problem further or solve the problem (if its a known issue) would be greatly appreciated. simran. =========================================================== Server information is: Server: Apache/1.3.27 (Unix) mod_ssl/2.8.14 OpenSSL/0.9.6c DAV/1.0.3 mod_perl/1.28 Perl information is : Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.21, archname=i686-linux uname='linux ogre 2.4.21 #1 smp thu aug 7 15:00:49 est 2003 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O3', cppflags='-fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', 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=-lnsl -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Aug 14 2003 16:40:19 %ENV: PERL5LIB="/opt/netchant/lib" @INC: /opt/netchant/lib /usr/local/netchant_perl/lib/5.8.0/i686-linux /usr/local/netchant_perl/lib/5.8.0 /usr/local/netchant_perl/lib/site_perl/5.8.0/i686-linux /usr/local/netchant_perl/lib/site_perl/5.8.0 /usr/local/netchant_perl/lib/site_perl . -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html