> We're running an application on Tomcat that often hits the limit of
> 150 threads. Can someone with experience changing this value give me
> advice on it? How big can you make this number? How much extra memory
> do I need if I say change it to, say, 500? Thanks.
just a few facts on threads in Tomcat:
. you'll need (Xss*max_threads)+Xmx+x memory in your box, where x is
the memory needed by the basic JVM tasks besides the thread space
(say, 100MB).
. on ia32/Windows, you can only assign 1.6GB (Xmx-)memory to a single
JVM. A value above it will break the 2GB barrier and will not run.
. you need to find the balance between max_threads and Xmx. A lower Xmx
gives you a higher max_threads and vice versa.
. Tomcat on Windows doesn't scale well. Use multiple Tomcat instances
on one box if you have a large box. In my setup, I run 4 Tomcats on a
2xXeon system with 4GB memory. Each Tomcat gets 1000 threads and
512MB. This is _much_ faster than a single Tomcat with all
memory and 4000 threads.
. Windows 2003 Server, at least the Standard Edition has major
limitations in both TCP connections and memory. There are some
workarounds using esoteric registry keys, but none of them works
well. Windows is a crippled desktop os that wants to be on the
server. If you want really high performance on large boxes, use
Linux (Kernel 2.6!). You even get a better administration
interface. Hate this inefficient administration-by-clicking ;-)
-- Michael
--
Dipl.-Technoinform Michael Kleinhenz
tarent GmbH . Bahnhofstraße 13 . 53123 Bonn
fon: +49 (228) / 52 67 5-0
fax: +49 (228) / 52 67 5-25
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]