Further followup. It seems like the default pool size is 256 for the MAX. 

HttpConnector contains an instance of SocketListener
SocketListener extends ThreadServer
ThreadServer extends ThreadPool
ThreadPool contains an instance of Pool
Pool contains a static int __max = 256

I can't see how to adjust this value, although the comments in thee
ThreadServer class say that its possible.

/jonathan

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 25, 2006 10:57 AM
> To: [email protected]
> Subject: RE: [servicemix-user] ServiceMix error - Out of Threads
> 
> 
> One more thing, this error is coming from the Jetty layer, 
> specifically
> 
> org.martbay.http.SocketListener
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 25, 2006 10:47 AM
> > To: [email protected]
> > Subject: RE: [servicemix-user] ServiceMix error - Out of Threads
> > 
> > 
> > The Out of Threads issue is occurring in the following environment:
> > 
> > ServiceMix: 3-SNAPSHOT
> > JVM: IBM Java 5 (pap32dev-20051104), 32bit mode
> > JVM parameters: -Xmx1024 -Xlp -Xverify:none
> > OS: AIX 5.3
> > ulimit -n = unlimited
> > 
> > We are going to try increasing the MAX_MEM to 2048M, and have 
> > also set an
> > AIX specific flag to reserve some heap space for threads. Has 
> > anyone run in
> > to this kind of error before? Again, we are encountering this 
> > error with
> > about 700+ simultaneous connections.
> > 
> > Another odd thing about the error is that there is no stack 
> > trace in the
> > servicemix.log. The error itself is only being written in to 
> > the log at a
> > WARN level (seems like it should be an ERROR), and there is 
> > no stack trace.
> > Perhaps the stack trace is being suppressed because its being 
> > recorded at
> > INFO, but that is speculation.
> > 
> > As a reminder, the error is:
> > 2006-01-24 14:23:03,342 WARN - 
> > SocketListener.isOutOfResources(383) | OUT OF
> > THREADS: [EMAIL PROTECTED]:14000
> > 
> > > -----Original Message-----
> > > From: Bruce Snyder [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, January 25, 2006 9:48 AM
> > > To: [email protected]
> > > Subject: Re: [servicemix-user] ServiceMix error - Out of Threads
> > > 
> > > 
> > > On 1/24/06, [EMAIL PROTECTED] 
> > > <[EMAIL PROTECTED]> wrote:
> > > > At around 700 concurrent users we are running out of threads:
> > > > 2006-01-24 14:23:03,342 WARN - 
> > > SocketListener.isOutOfResources(383) | OUT OF
> > > > THREADS: [EMAIL PROTECTED]:14000
> > > >
> > > > How can we bump up the number of threads available here? Is 
> > > this ulimit
> > > > related, a parameter to ServiceMix or a -Xmx increase 
> for the JVM?
> > > 
> > > Jonathan,
> > > 
> > > Please provide some additional details about your 
> environment (e.g.,
> > > operating system, JVM vendor, JVM memory allocation, custom kernel
> > > compilation notes, etc.). This information would be most helpful.
> > > 
> > > Bruce
> > > --
> > > perl -e 'print 
> > > 
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> > > );'
> > > 
> > > Apache Geronimo (http://geronimo.apache.org/)
> > > 
> > > Castor (http://castor.org/)
> > > 
> > 
> 

Reply via email to