8 Replies Latest reply on Apr 1, 2011 12:37 AM by peterj

    JBoss AS 6 - Performance Tuning

    rajan11

      Can someone point me to the performance tuning documentation for JBoss 6?

      All I am trying to do is to increase number of HTTP Threads to handle our load. I haven't found a reliable answer/way to do so.

       

      Any help will be appreciated.

      Regards

        • 1. JBoss AS 6 - Performance Tuning
          welle

          The HTTP threads settings are in "$JBOSS_HOME/server/default/deploy/jbossweb.sar/server.xml". Look at the documention for Tomcat to see which settings you want to change in the "http connector"

          • 2. JBoss AS 6 - Performance Tuning
            rajan11

            Thanks for the reply. That is where I used to set the maxThreads, minSpareThreads, maxSpareThreads and acceptCount for the connector in JBoss 4.2.3.

            The format of the file is slightly different for AS 6 and the these properties are missing. The jmx-console allows me to set these values.

            I added these properties to the server.xml and server started up fine, with my new values.

             

            My only concern is, is that the right way to set values?

            What about thread-pool-jboss-beans.xml file? How is that used?

            • 3. JBoss AS 6 - Performance Tuning
              wdfink

              Here you might find hekpful links (maybe later)

              http://community.jboss.org/wiki/JBossAS6FAQ

              also I think the Tuning and sliming of previous versions will not completely outdated and helpful.

              http://community.jboss.org/wiki/JBossASTuningSliming

              http://community.jboss.org/wiki/JBoss5xTuningSlimming

              • 4. JBoss AS 6 - Performance Tuning
                peterj
                That is where I used to set the maxThreads, minSpareThreads, maxSpareThreads and acceptCount for the connector in JBoss 4.2.3.

                Yes, but those have not been the way to configure HTTP threads since Tomcat 6 (or since JBoss AS 5.0.0). See this:

                http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

                • 5. JBoss AS 6 - Performance Tuning
                  welle

                  I didn't know about the executor. If I understand it correctly the "old" setup is valid if you are not using the executor settings in the connector to point out the thread pool to use.

                  • 6. JBoss AS 6 - Performance Tuning
                    peterj

                    My experience has been that the "old" values are ignored. I recall some discussions about this a year or two back, I think that the poster was wondering why he had more threads than maxThreads (or perhaps why on an idle system the thread count did not go down to minSpareThreads). If I find the thread I'll post the link.

                    • 7. JBoss AS 6 - Performance Tuning
                      rajan11

                      Yes, agreed. But the real question is - do I still modify the server.xml to configure tomcat?

                       

                      What I am seeing it that under load (using JMeter, when I fire 300 threads, with no delay), JBoss puases.

                      100/200 Threads, no problem.

                       

                      What am I doing wrong?

                      • 8. JBoss AS 6 - Performance Tuning
                        peterj
                        do I still modify the server.xml to configure tomcat?

                         

                        Yes.

                         

                        What am I doing wrong?

                        Could be any number of things. To begin with, I would not fire off 300 threads at once. There are way too many things that can go wrong. I would place a delay of about 100-200 milliseconds between each thread, minimum. But without examining your test environment and taking a whole lot of measurements, there is no way to tell what the problem is.