It sounds as if not the number of threads is the problem, 
but the amount of memory that is used by the threads.

May be you should track the memory usage to verify that
the memory is low when this Exception happens)
(Just log the results of Runtime.[free|total]Memory())

> -----Original Message-----
> From: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 10:24 AM
> To: [EMAIL PROTECTED]
> Subject: OutOfMemoryError: cannot create new native thread
> 
> 
> What are the non-obvious causes of OutOfMemoryError: cannot create new
> native thread?
> 
> This is happening quite a bit on my Tomcat cluster (linux + sun
> jdk1.4.1_01 + jboss/tomcat 4.0.4, no ejbs) under load, but the actual
> thread count (by either ps or the thread dump) is relatively 
> low, often less than 200.
> 
> Can anyone speculate on what might be wrong?  I've checked, and just
> spawning threads my test went up to almost 1000 threads before
> complaining.  It doesn't seem like I should run into problems at 200
> threads.
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to