9 Replies Latest reply on Dec 14, 2010 4:25 AM by jaikiran

    JBoss AS 6.0.0.M5 performance & memory consumption

    christoph.rettig

      Hi, I recently upgraded a JBoss 4.2.3 GA installation to JBoss 6.0.0 m5 and now I am facing performance problems:

       

      When starting JBoss 6m5 the startup takes approximately 5 to 6 minutes (in comparison to 35 seconds with the old installation) and the memory

      consumption is huge (about 300-500 MB instead of 50-100MB).

       

      What I am also facing is that the JBoss 6m5 memory grows up without putting any load on the server (so its just started up, no users

      are working on it) from 300MB to about 500MB, then the garbage collector kicks in and removes about 200MB; this goes on repeatedly

       

      I have attached screenshots of JConsole of both the old and the new installation so you can have a look (note that both installations

      are standard, I did not do any performance tuning or change the configuration except placing my wars in the server).

       

      Do you have similar experience with this release or is there a release which should be preferrable used (I also tested the latest JBoss 5

      release and it showed similar behaviour)?

       

      Any help on this topic appreciated.

       

        chris

        • 1. Re: JBoss AS 6.0.0.M5 performance & memory consumption
          dkozlowski

          So This isn't going to help you with your problem , but it looks like you have remote jconsole working with JBossAS 6M5 I have been attempting to accomplish this , but haven't been able to. Would you be able to share the settings you used to get Remote JMX enabled ?

          • 2. Re: JBoss AS 6.0.0.M5 performance & memory consumption
            jaikiran

            Christoph Rettig wrote:

             

            Hi, I recently upgraded a JBoss 4.2.3 GA installation to JBoss 6.0.0 m5 and now I am facing performance problems:

             

            When starting JBoss 6m5 the startup takes approximately 5 to 6 minutes (in comparison to 35 seconds with the old installation)

            Is that with your application deployed or without it?

            • 3. Re: JBoss AS 6.0.0.M5 performance & memory consumption
              mreasy

              Hi Christoph,

              see http://community.jboss.org/thread/159659 for a similar comparison between JBoss4.x and 6.

              In my tests (lasting for about 1-2 days at most) I also monitored memory consumption, but that was never showing a problem.

              • 4. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                christoph.rettig

                Hi Daniel, I am using the following environment

                 

                JAVA_OPTS_STD="-Xmx1024m -XX:MaxPermSize=256m -Dguid=jboss -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.rmi.server.hostname=${INTERFACE}"
                JAVA_OPTS_JMX="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8089 -Dcom.sun.management.jmxremote.ssl=false"
                JAVA_OPTS_LOGGING="-Dlog4j.configuration=file://${JBOSS_HOME}/bin/log4j.properties"
                JAVA_OPTS="${JAVA_OPTS_STD} ${JAVA_OPTS_JMX} ${JAVA_OPTS_LOGGING}"

                 

                export JAVA_OPTS

                 

                and this works out :)fine

                • 5. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                  christoph.rettig

                  Hi, its with my applications deployed but my application are all jsp clients that do not do anything actively, so its just a JBoss having a few jsp pages loaded and I guess this should not result in that much resource consumption. Also I would expect that the startup should be not 5 minutes when having

                  deployed all the applications once?

                  • 6. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                    christoph.rettig

                    Hi Rico, so you did not have this long startup time with your tests?

                    • 7. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                      mreasy

                      Christoph Rettig schrieb:

                       

                      Hi Rico, so you did not have this long startup time with your tests?

                      No. But maybe it's worth to tell sth. about your hardware. There may be other key components - like JBoss6 does more I/O related and less DB related operations than JBoss4 regarding the messaging.

                      • 8. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                        christoph.rettig

                        I did my tests on a linux (RedHat) machine that is the same running the JBoss 4.2.3 GA

                         

                          Linux dmsdev 2.6.26.5-vmware-atop-35 #2 SMP Tue Sep 23 16:01:36 CEST 2008 i686 athlon i386 GNU/Linux

                         

                        which has one CPU and 3 GB of RAM.

                         

                        As I compared the performance on the same machine running the old system I would not think that the hardware is the bottleneck.

                         

                        Also I observed that the startup time of the JBoss without any applications deployed takes ap. one minute in comparison to the old

                        JBoss 4.2.3 GA which took about 20 seconds.

                         

                        I guess I will wait until there is a GA release of JBoss 6 and then do my tests again - for me it seems that the current system is too unstable

                        to be used:(

                        • 9. Re: JBoss AS 6.0.0.M5 performance & memory consumption
                          jaikiran

                          Christoph Rettig wrote:

                           

                          Also I observed that the startup time of the JBoss without any applications deployed takes ap. one minute in comparison to the old

                          JBoss 4.2.3 GA which took about 20 seconds.

                           

                          For me on my Ubuntu system, a clean 6.0.0.CR1 boots approximately in around 20-23 seconds.

                           

                          Christoph Rettig wrote:

                           

                          I guess I will wait until there is a GA release of JBoss 6 and then do my tests again - for me it seems that the current system is too unstable

                          to be used:(

                           

                          I don't think that's going to help, since there's no known performance issue that's been marked for 6.0 Final release. So let's narrow down the issue first. Install a clean 6.0.0.CR1 and start the default profile (without any of your applications) and post the entire logs that you see on the console. That would be a first step to see what's wrong.