Hi Yoav.

Thanks for the response.

I believe I have found the issue.

Apparently Windows NT/2000 defaults to a 1mb virtual thread stack size per
thread unless otherwise stated.  In addition a maximum of 2gb of thread
stack space per process is allowed by Windows (not sure if this can be
changed or not!).  Thus the tomcat JVM could only have 2000 odd concurrent
threads - and on a server that hosts 50 sites, of which 20 are fairly busy
this could be a problem.

Thus I reduced the thread stack size to 512k (via -Xss512k).  In addition
there were about 12 connectors in tomcat where the minSpareThreads were set
too high - so set them back to default of 4 (from between 50 and 100).
Hectic.

Now we see how she bahaves!

Regards,

Carl

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 5:38 PM
To: Tomcat Users List
Subject: RE: OutOfMemoryError: unable to create new native thread


Hi,

>- Actually ran out of memory
>- Hit max # of threads allowed to run (OS dependant?)

This is the most likely cause in your case, and it's OS-dependent as you
surmised.  On *nix this is adjusted via the ulimit (-n) command.  But on
Windows 2000 Server, I'm not sure off the top of my head.  Google?

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

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

Reply via email to