3 Replies Latest reply on Apr 25, 2016 11:34 AM by rubenvp

    Why the metric "max-active-sessions" is reporting -1?

    rubenvp

      I did a deployment of an example hello.war file, but when I tried to read the metrics, EAP repots -1, indeed I believe that value provides from the configuration of the "max-active-sessions", but I understood that there are two different things, the metric is the "Maximum number of concurrent active sessions" and the configuration property is "Maximum number of sessions allowed" (but both have the same key "max-active-sessions")


      I'm using EAP7

       

      This is my output using CLI

       

      /deployment=hello.war/subsystem=undertow:read-attribute(name=max-active-sessions)

      {

         "outcome" => "success"

          "result" => -1

      }

       

       

      this is my output for the resource description:

       

      "max-active-sessions" => {

           "type" => INT,

           "description" => "Max number of concurrent active sessions",

           "expressions-allowed" => false,

           "nillable" => false,

           "access-type" => "metric",

           "storage" => "runtime"

      }



      Sounds like a bug, when the reporting value correspond to the value set in the configuration for maximum allowed, but I'm not really sure. I tested moving the configuration for "max-active.sessions" and the result is that metric reported exactly the value I put.

       

      Thanks.



        • 1. Re: Why the metric "max-active-sessions" is reporting -1?
          ctomc

          did you enable statistics?

          • 2. Re: Why the metric "max-active-sessions" is reporting -1?
            rubenvp

            Yes, I did.

             

            [standalone@localhost:9990 /] /subsystem=undertow:read-resource

            {

                "outcome" => "success",

                "result" => {

                    "default-security-domain" => "other",

                    "default-server" => "default-server",

                    "default-servlet-container" => "default",

                    "default-virtual-host" => "default-host",

                    "instance-id" => expression "${jboss.node.name}",

                    "statistics-enabled" => true,

                    "buffer-cache" => {"default" => undefined},

                    "configuration" => {

                        "filter" => undefined,

                        "handler" => undefined

                    },

                    "server" => {"default-server" => undefined},

                    "servlet-container" => {"default" => undefined}

                }

            }

            • 3. Re: Why the metric "max-active-sessions" is reporting -1?
              rubenvp

              It seems to me like this is really a bug in EAP7, the metric is reporting the maximum number of active sessions allowed (set in the configuration of the deployment) and not the statistic "Maximum number of concurrent active sessions" of the session manager, I saw it in the code but I'm not sure..  Could someone confirm that is really a bug and not an expected behavior?

               

              Thanks!