CLOSE_WAIT Problems with Apache(Again..)
CLOSE_WAIT Problems with Apache(Again..)
- Subject: CLOSE_WAIT Problems with Apache(Again..)
- From: Michael Henderson <email@hidden>
- Date: Wed, 4 Feb 2004 14:14:26 -0800
Hi,
My app is an intranet app targeted at many users submitting many new
objects for insert in a short time-frame.
A user's session consists of login, choose some items, answer some
questions, save answers and logout.
(The environment is constrained and this WILL be the sequence of
events).
I am running with concurrent request handling enabled to get the max
throughput. I have no error messages
concerning unlocked editing contexts.
I have pre-cached as much data in application-wide caches as possible
to avoid database access during the user's session.
I have moved all static images to the web-server. I have moved serving
of any dynamic images off to another WO App so my main
app serves only HTML (I am testing a deployed app with Apache in front
of it).
If I simulate several users taking the test, no problem, but simulating
larger numbers (32 simultaneous sessions on one instance
(Not an unrealistic assumption for deployment) I watch the log and see
the worker thread count grow to 256 (the default maximum).
Then I see dozens of messages:
<WOWorkerThread id = 250 socket=null> IOException occurred while
accepting server socket: tjava.net.SocketException: Too many open
files.
- the thread id changes.
sudo lsof -P shows lots of sockets from my app to Apache stuck in
CLOSE_WAIT (249 to be exact):
localhost:20001->localhost:63052 (CLOSE_WAIT)
I modified my apache.conf to set :
TimeOut 100
KeepAlive Off
I am using a static WO adaptor config file with poolsize="0" on my app
instance.
Oh and it's Mac OS X 10.2.8, WO 5.2.1
I've searched the omnigroup lists for this and tried all the suggested
fixes. I promise to post back a summary of the steps to fix this
problem
if anyone can pass along some hints.
Any ideas?"
Mike
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.