3 Replies Latest reply on Oct 7, 2010 6:51 AM by myx

    [JBoss 4.2.3] Problem with maxActiveSessions

    myx

      Hey mates,

       

      I have a problem with the configuration of my server. I have to limit the number of active sessions (http) but there is someting I don't understand I guess.

       

      Here what I have added in my /path/to/jboss/server/default/deploy/jboss-web.deployer/server.xml (just after the HTTP Connector) :

       

      <Engine name="jboss.web" defaultHost="localhost">

           <Host name="localhost">

              <Context className="org.apache.catalina.core.StandardContext" override="true">

                 <Manager className="org.apache.catalina.session.StandardManager" maxActiveSessions="20" />

              </Context>

           </Host>

      </Engine>

       

      But with that piece of configuration, nothing change, I always have a lot of active sessions (> 200).  Do I have miss something ?

       

      I'm on this problem for several hours and I don't understand, so you are my only hope !

       

      Thank you a lot !

       

      P.S : Sorry for my english, I'm french, unfortunately

        • 1. Re: [JBoss 4.2.3] Problem with maxActiveSessions
          jaikiran

          Greg T. wrote:

           


          But with that piece of configuration, nothing change, I always have a lot of active sessions (> 200).  Do I have miss something ?

           

           

          Where exactly did you get the active session count = 200?

          • 2. Re: [JBoss 4.2.3] Problem with maxActiveSessions
            myx

            jaikiran pai t:

             

            Greg T. wrote:

             


            But with that piece of configuration, nothing change, I always have a lot of active sessions (> 200).  Do I have miss something ?

             

             

            Where exactly did you get the active session count = 200?

             

            In the Tomcat status (JBoss Console). When I monitor my application (the entry point is just a servlet in my case) I have statistics like that :

            Active Sessions : 289 Session count : 326 Max active sessions : 296 Expired sessions : 37. (It's just an example)

            • 3. Re: [JBoss 4.2.3] Problem with maxActiveSessions
              myx

              Any suggestion ?

               

              Nobody had to limit his number of http sessions ?