Re: Instance gets down after approx 500 hits; Database backup; Connection pooling with Single Database Context
Re: Instance gets down after approx 500 hits; Database backup; Connection pooling with Single Database Context
- Subject: Re: Instance gets down after approx 500 hits; Database backup; Connection pooling with Single Database Context
- From: Mark Ritchie <email@hidden>
- Date: Mon, 26 Apr 2010 15:45:37 -0700
Hey Chuck!
On 26/Apr/2010, at 1:41 PM, Chuck Hill wrote:
>> Regarding the WebObjectsLog directive in the WOAdaptor and Apache 2.2, there's a 'feature' where only the initial messages are logged to the file and the subsequent messages for each R/R are not. The problem happens when the log file is created by the parent apache process (usually running as a privileged user) and the subsequent R/R are handled by child processes (usually not privileged.) One fix for this is to change the ownership or permissions on the log file so that the child processes can append to the file!
> I guess there is no way to fix this.
>> Due to a longstanding mismatch of case, the more serious error messages which were supposed to be logged to the apache logs were unintentionally squelched. A fix for that and a notice when the child process is unable to append to the log file are on their way to the Wonder repository. ;-)
As the fix is likely to be very environment and configuration specific, I took the approach of reporting that there was a problem rather then trying to guess at what the context specific solution should be! ;-)
To start with, I've changed the Adaptor to report serious error messages to the Apache logs in addition to the WO logs. It looks like this code has been inactive for sometime (read decade) due to upper case vs mixed case mismatch.
Then I added a message when apache is unable to append to the log file. This won't tell you what the log message was but it will tell you that your current environment configuration is preventing log messages from getting to the log file.
Hopefully these steps will help others!
Thanks to Travis for getting these changes committed to Wonder!
Please direct feedback to me.
M.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden