Re: MasonHQ node caching, and other bugs
"Jonathan Swartz" <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
> >> Starting up apache takes a lot of time. And new instances have to be > >> spawned often, so the site is generally pretty slow. Keeping > >> > >> MaxRequestsPerChild 10 > >> > >> in conf/httpd-prod.conf.src generally works, but is slow. Increasing the > >> number results in frequent internal server errors. > > > > Internal server errors should be matched with errors in the logs...what are > > the errors? > > The errors look like this: > > [Tue Apr 19 07:26:16 2005] [error] DBD::mysql::st execute failed: Lost > connection to MySQL server during query at > /apps/wiki/lib/perl5/site_perl/5.8.5/Apache/Session/Store/DBI.pm line > 44.\n\t(in cleanup) DBD::mysql::st execute failed: Duplicate entry > '6999c10a696d59be3b538a69c8672d67' for key 1 at > /apps/wiki/lib/perl5/site_perl/5.8.5/Apache/Session/Store/DBI.pm line > 44.\n\nStack:\n > [/apps/wiki/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm:880]\n > [/apps/wiki/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm:789]\n > [/apps/wiki/masonhq/conf/handler-prod.pl:33]\n [/dev/null:0]\n Ah, Apache::Session. I'd forgotten that I had lowered the MaxRequestsPerChild as well. Ok, you finally motivated me to purge (exorcise?) all remnants of Apache::Session from the masonhq code. It was only really being used for redirect-on-login, and I got that to work with a hidden parameter. I know that lots of people use and like Apache::Session...and I'd really *like* to use it, since it is the defacto session standard for mod_perl and Mason...but lord, I just can't get that module to work reliably. Jon ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click