2 Replies Latest reply on Mar 27, 2009 11:38 AM by peterj

    Augmenting the thread pool for more performance

    andrechan

      I have the objective of increasing the number of user which can be served at the same time.
      What configuration files I have to change to increase the pool size? Are there some controindications in doing so i.e I can increase the pool size to infinite or is there a limit?

        • 1. Re: Augmenting the thread pool for more performance
          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

            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.