4 Replies Latest reply on Dec 7, 2006 3:51 AM by Abhishek Pareek

    Jboss 4.0.0 configuration for load testing - thread pool, hs

    Rahul Shah Newbie


      I am performaing load testing on Jboss 4.0.0 and expecting 500 messages/second. I have simple HTTPServlet implemented which receives HTTP POST messages (approx 100 characters string) and put in hsql database table. (I have to use hsql :( )

      1. What should be thread pool configuration in Jboss for such load? Below is server.xml of tomcat.


      < Connector port="8080" address="${jboss.bind.address}"
      maxThreads="500" minSpareThreads="75" maxSpareThreads="150"
      enableLookups="false" redirectPort="8443" acceptCount="100"
      connectionTimeout="20000" disableUploadTimeout="true" / >

      2. I understand that each request is handled by JBoss in *different* thread. So my application does not require their own thread pooling. Please correct me if wrong.

      3. I am using inbuilt HSQL database for storing messages. What is maximum number of connection possible at a time with this database (basically, can HSQL handle this much load - as each message by thread is going to added in a table). What should be my min/max pool size of hsql?


      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->

      <!-- The maximum connections in a pool/sub-pool -->

      I have gone through tuning/slimming of jboss wiki and did optimization. But still i am getting connection refused in client. Also JBoss server memory grows over period of time eventually causing out of memory.
      Does database connection plays here?

      I am using -Xms512M -Xmx1024 option.
      My Server is PIV 3 GHz - 2 GB - Windows XP SP2.
      JBoss version 4.0.0 with inbuild HSQL database.

      Appreciate your prompt reply.