5 Replies Latest reply on Aug 4, 2002 2:26 AM by andreaugusto

    HTTP--Sessions

    andreaugusto

      I'm evaluating JBOSS as server for a solution I'm currently working on. My questions are:

      1 - The replication works for TOMCAT? I want to use tomcat because it's, according to a lot of benchmarks I did, 15% percent faster than jetty(with tomcat version 4.0.3). If you consider version 4.1.7(beta), it's almost 70% faster.

      3 - Does sessions time out? I saw a post on Jboss forums where someone comments the sessions doesn't get timed out. It's a bad thing in my scenario...

      Thanks in advance...

        • 1. Re: HTTP--Sessions
          joao.clemente

          May you share with me the bechmarking you did?
          I'm trying to find out if I should advice JBoss+Jetty or JBoss+Tomcat for a project infrastructure and that benchmark would be great.

          Answering to your question:
          Yes, you can have Tomcat clustered http session. I'm not sure how this is achieved in JBoss packege.

          Check this thread
          http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ this thread Matt Cleveland (groovesoftware) uses a clustered setup with JBoss and Tomcat. Read it's initial post and maybe the files he posted in the 3rd message and I'm pretty sure you'll get your answer.

          Boa sorte! ;-)

          Joao Clemente
          Portugal

          • 2. Re: HTTP--Sessions
            derry

            Tomcat session clustering is available since JBoss 3.0.1RC1. Branch_3_0 in CVS has some fixes and improvements. The implementation uses Sacha's generic session clustering code.

            CU
            Thomas

            • 3. Re: HTTP--Sessions
              derry

              I forgot to answer your second question ;-)...

              Yes, sessions time out in Tomcat (I don't know how this is handled in Jetty). The Tomcat-clustering code respects the normal HttpSession-attributes (maxInactiveTimeInterval)...

              CU
              Thomas

              • 4. Re: HTTP--Sessions
                andreaugusto

                I've made some tests with Jetty, Tomcat 4.0.4, Orion 1.5.4 and OC4J 1.5.4. I know everybody must do it's own benchmark, so here comes my own:
                App Server: Athlon 800Mhz, 512MB ram, Windows XP professional
                Database: Oracle 8.1.7 - running on a 4 processors DELL Machine(Pentium III 900, 1GB ram)
                Test setup: 100 simultaneous threads (MS Web App Str Tool)
                Files: 10 jsp(few database reads, not using ejb) files and 10 jpg files (about 70Kb, each)
                All jvm were started with -Xmx400m -server
                Test Time: 2 minutes
                Jetty 4.0.2: 9508 hits - 79 hits per second
                Tomcat 4.0.3: 16808 hits - 140 hits per second
                Orion Server: 25409 hits - 211.23 hits per second
                OC4J Server: 27402 hits - 228.68 hits per sec.
                That's it! Of course, it's a lot generic. If you allow me to give you an advice, do your own benchmark.

                Thanks anyway for your answers.

                • 5. Re: HTTP--Sessions
                  andreaugusto

                  Thanks for your answers!