This content has been marked as final.
Show 2 replies
-
1. Re: Augmenting the thread pool for more performance
andrechan Mar 27, 2009 6:56 AM (in response to andrechan)Sorry forgot to say I'm using Jboss 4.2.2 and my application is a Web Service :)
Thanks :) -
2. Re: Augmenting the thread pool for more performance
peterj Mar 27, 2009 11:38 AM (in response to andrechan)Web services come in over HTTP, thus changing the max threads allowed for HTTP should increase the number of allowed connections. You can set this in server/xxx/deploy/jboss-web.deployer/server.xml, change maxThreads:
<Connector port="8080" address="${jboss.bind.address}" maxThreads="250" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />
Note that each connection uses its own thread so while the only limit is the number of threads that the operating system can support, too many threads will cause contention issues. The maximum practical number of threads depends on your hardware - mores cores/CPUs and/or faster CPUs wcan handle more threads.