2 Replies Latest reply on Sep 19, 2018 4:38 AM by abhinav.gupta01

    Active http sessions on wildfly

    abhinav.gupta01

      Hello,

      This may sound a duplicate question , but for some reason I am not able to find conclusive answer for it on forum and stackoverflow too.

      Do we have a way in WildFly management console  or CLI to fetch number of active sessions in system ?

       

      I try to look in some suggestions ,which were applicable for AS7 , didn't work for WildFly 10

      Any pointers please ?

       

      Thanks,

      Abhinav

        • 1. Re: Active http sessions on wildfly
          claudio4j

          Since Wildfly 10, you can read the number of active sessions

           

          WildFly 10.0 Model Reference

           

          CLI

          /deployment=kitchensink.war/subsystem=undertow:read-resource(include-runtime)
          {
              "outcome" => "success",
              "result" => {
                  "active-sessions" => 700,
                  "context-root" => "/kitchensink",
                  "expired-sessions" => 0,
                  "highest-session-count" => 0,
                  "max-active-sessions" => -1,
                  "rejected-sessions" => 0,
                  "server" => "default-server",
                  "session-avg-alive-time" => 0,
                  "session-max-alive-time" => 0,
                  "sessions-created" => 0,
                  "virtual-host" => "default-host",
                  "servlet" => {"org.jboss.as.quickstarts.kitchensink.rest.JaxRsActivator" => undefined},
                  "websocket" => undefined
              }
          }
          

           

          The Web Management Console, since Wildfly 13 can monitor the number of active sessions too, see a screenshot

          Before Wildfly 13, you can see the number of active sessions, using the Model Browser

          • 2. Re: Active http sessions on wildfly
            abhinav.gupta01

            Thanks Claudio !