Re: MacOSX 10.3 Server deployment
Re: MacOSX 10.3 Server deployment
- Subject: Re: MacOSX 10.3 Server deployment
- From: Chuck Hill <email@hidden>
- Date: Tue, 06 Jan 2004 15:38:53 -0800
Out of curiosity, do you have a value set for the connection pool size?
"...connections to instances are not shared. If connection pooling is
enabled each adaptor process maintains its own connection pool. In
practice, this is primarily of concern only in the case of the Apache
adaptor. On a busy deployment site each Apache process may hold open a
connection to each instance, resulting in a large number of open connections."
http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebOb
jects_5.1/DeploymentAdditions/adaptors.html
Chuck
At 07:41 AM 06/01/2004 -0800, Mark Fisher wrote:
>Pierre,
>
>I have the same problems you describe but my hardware environment is a
>bit different. I run a cluster of XServers: One webserver/application
>server, One database server and two dedicated WebObjects application
>servers.
>
>Before the change to 10.3 I had one application distributed to three of
>the servers running over 20 instances on each server. Now (with the
>upgrade to 10.3) I'm running 10 instances on each server.
>
>I have been able to trace the problem down to WOTASKD - over time it
>opens too many TCP ports to the running instances and finally gets
>stuck with a "Too many files open" error - check your
>/var/log/webobjects.log for that message.
>
>I was able to work around the problem by writing a CRON task the counts
>the number of open TCP connections from WOTASKD and restarts WOTASKD
>when the number grows larger than 240 (the crash/hang occurs when your
>reach 255 TCP connections)
>
>Here is the line I use to identify the open TCP connections (note; you
>will have to adjust your port range if you changed the default or you
>have more instances running than I do):
>
> sudo lsof -i tcp:2001-2050 -P
>
>Here is the line I use to restart WOTASKD (I had to fix the startup
>script too)
>
> sudo SystemStarter restart 'WebObjects Services'
>
>I run this script every 10 min in a CRON job:
>
>#!/bin/sh
>#
># Restart WOTASKD when it has too many TCP connections open
>#
># by Mark Fisher 11/28/03
># must be run as "root"
>#
>maxprocs=240
>PROCESSLIST=`sudo lsof -i tcp:2001-2050 -P`
>i=0
>for process in $PROCESSLIST
>do
> i=$((i+i))
>done
>if [ $i -gt $maxprocs ] ;then
> echo "Restarting WOTASKD"
> `SystemStarter restart 'WebObjects Services'`
>fi
>echo ""
># end shell script
>
>This solves the problem for now but I really, really wish I knew the
>cause of the problem - Is WOTASKD *really* that broken in 10.3? I
>wonder how many others out there are having the same trouble getting
>10.3 Server & WebObjects working reliably.
>
>If *ANYONE* (Apple are you listening) has any more information on this
>problem I would like to hear from you.
>
>Thanks in advance,
>
>
>Mark FIsher
>Chief Software Engineer,
> Learning Quest, Inc.
>
>_______________________________________________
>WebObjects-dev mailing list
>email@hidden
>http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.