Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
On Wed, 18 Feb 2009, Robert Jacobson wrote: > Most of the time (I'd guess ~80%), this works fine. When it doesn't > work, I get the following error on STDERR (even though I've wrapped > STDERR with a "Trapper" as described in the FAQ): > > Can't call method "log" on an undefined value at /opt/ActivePerl- > 5.8/lib/site_perl/5.8.7/Log/Log4perl/Appender.pm line 189. Hmm, that's peculiar. I wonder what kind of config change would cause this. Are you removing an appender by any chance? -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
Mike Schilli m-at-perlmeister.com |log4perl_sourceforge| wrote: > Hmm, that's peculiar. I wonder what kind of config change would cause > this. Are you removing an appender by any chance? Nope, usually I'm only changing the log level. But I can reproduce the error without changing anything in the config, too. It does seem to only have a problem when the system is heavily loaded. Perhaps this is a race condition that is more likely when resources are heavily used? (just a guess, I really don't know) -- Rob -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
On Fri, 20 Feb 2009, Robert Jacobson wrote: >> I wonder what kind of config change would cause >> this. Are you removing an appender by any chance? > > Nope, usually I'm only changing the log level. > > But I can reproduce the error without changing anything in the config, too. Interesting ... is there a way you could send a narrowed-down test program to let me reproduce this? I'd be interested to find out what's causing this. Also, is this only happening on Windows with ActiveState Perl or have you seen it happen on other OS and perl distros as well? -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
Mike Schilli m-at-perlmeister.com |log4perl_sourceforge| wrote: > On Fri, 20 Feb 2009, Robert Jacobson wrote: >>> I wonder what kind of config change would cause >>> this. Are you removing an appender by any chance? >> >> Nope, usually I'm only changing the log level. >> >> But I can reproduce the error without changing anything in the config, >> too. > > Interesting ... is there a way you could send a narrowed-down test > program to let me reproduce this? I can try, but it'll have to wait until I'm at work again. > I'd be interested to find out what's > causing this. Also, is this only happening on Windows with ActiveState > Perl or have you seen it happen on other OS and perl distros as well? I am using ActiveState perl on CentOS 4.2 and RHEL4; they both exhibit the problem. I haven't tried Windows; does SIGHUP even exist there? (nvm, doesn't matter :) ) -- Rob -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
On Sat, 21 Feb 2009, Robert Jacobson wrote: > I am using ActiveState perl on CentOS 4.2 and RHEL4; they both exhibit > the problem. I haven't tried Windows; does SIGHUP even exist there? > (nvm, doesn't matter :) ) Never mind, I was assuming you were using Windows because I've never used ActiveState Perl on Unix! :) -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
Ah, apparently I *had* left some appenders using DBI_Buffer (DBI appender subclass) in my config. I retested a bunch of things today and I could not reproduce the error unless I had my DBI_Buffer appender in the config. Further investigation showed that the mysql server was reaching its maximum number of allowed connections (currently set at 250). Apparently my appender is not closing its dbh filehandles. I'm going to start a separate thread, since the problem is something totally different (in my code, probably). I apologize for my inadequate testing :( -- Rob -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel
Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration
On Mon, 23 Feb 2009, Robert Jacobson wrote: > Apparently my appender is not closing its dbh filehandles. I'm going > to start a separate thread, since the problem is something totally > different (in my code, probably). I apologize for my inadequate > testing :( No problem at all, glad we've found an explanation :) -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel