As a reference, in conf/server.xml I set my thread limit to 10000 max
threads, 1000 max idle threads, and 100 on startup. I've seen my as
many as 7K threads busy within my application. This is on a 32bit 2.6
Linux kernel with 2GB of RAM (-Xmx1500m). On the 2.4 kernel I found
practical limitations in how many "threads" the kernel could multiplex
between, saw frequent system hangs under high load where the whole
server would become unusable.
On either linux kernel, you probably want to increase your maximum
number of file descriptors in /etc/security/limits.conf for your Tomcat
user account(s). 16K nofile as default works great for me.
How much more memory you need really depends on your application. 500
threads isn't that much memory overhead, but if each thread goes off and
creates a bunch of objects while it's working you'll need to assure
heapspace is available accordingly. The short answer is: try it out,
play with it. 500 threads isn't a whole lot.
-ryan
Kenneth Litwak wrote:
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.
Ken
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]