Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4440

Incorrect value returned by undertow for "max number of concurrent active sessions" metric

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.DR8
    • 7.0.0.ER7
    • Undertow
    • None
    • Hide

      1. Deploy helloworld.war file.
      2. Connect to server using CLI (jboss-cli.sh)
      3. Request the metric: /deployment=helloworld.war/subsystem=undertow:read-attribute(name=max-active-sessions)

      The server is returning:

      [standalone@localhost:9990 /] /deployment=helloworld.war/subsystem=undertow:read-attribute(name=max-active-sessions)
      {
          "outcome" => "success",
          "result" => -1
      }
      

      The server is returning -1 because this is the default value for unlimited sessions. If you deploy helloworld2.war file, the server returns 2 for that deployment, this is the maximum allowed session configured in the war file. (jboss-web.xml max-active-sessions).

      [standalone@localhost:9990 /] /deployment=helloworld2.war/subsystem=undertow:read-attribute(name=max-active-sessions)
      {
          "outcome" => "success",
          "result" => 2
      }
      

      This is not the maximum number of concurrent sessions metric that we expected.

      Show
      1. Deploy helloworld.war file. 2. Connect to server using CLI (jboss-cli.sh) 3. Request the metric: /deployment=helloworld.war/subsystem=undertow:read-attribute(name=max-active-sessions) The server is returning: [standalone@localhost:9990 /] /deployment=helloworld.war/subsystem=undertow:read-attribute(name=max-active-sessions) { "outcome" => "success" , "result" => -1 } The server is returning -1 because this is the default value for unlimited sessions. If you deploy helloworld2.war file, the server returns 2 for that deployment, this is the maximum allowed session configured in the war file. (jboss-web.xml max-active-sessions). [standalone@localhost:9990 /] /deployment=helloworld2.war/subsystem=undertow:read-attribute(name=max-active-sessions) { "outcome" => "success" , "result" => 2 } This is not the maximum number of concurrent sessions metric that we expected.

    Description

      Undertow is returning "maximum active sessions allowed" configured in the deployment as the "max number of concurrent active sessions" metric.

      Additional Information:

      I requested a resource description and the description of the attribute says it is a metric.

      [standalone@localhost:9990 /] /deployment=helloworld2.war/subsystem=undertow:read-resource-description 
      .......
      .......
      
                  "max-active-sessions" => {
                      "type" => INT,
                      "description" => "*Max number of concurrent active sessions*",
                      "expressions-allowed" => false,
                      "nillable" => false,
                      "access-type" => "metric",
                      "storage" => "runtime"
                  },
      .....
      .....
      

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              rubenvp Ruben Vargas (Inactive)
              Jan Stourac Jan Stourac
              Jan Stourac Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: