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: Chuck Hill <email@hidden>
- Date: Mon, 26 Apr 2010 16:07:33 -0700
On Apr 26, 2010, at 3:45 PM, Mark Ritchie wrote:
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! ;-)
That was my take on it. Do you know what changed? Did Leopard change
the permissions of the parent and children Apache processes?
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.
Testing: priceless.
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!
I am sure it will.
Thanks to both of you.
Chuck
Thanks to Travis for getting these changes committed to Wonder!
Please direct feedback to me.
M.
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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