Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-804

Statistic for session-avg-alive-time doesn't work.

    XMLWordPrintable

Details

    • Hide
      1. Start EAP 7
      2. Enable statistics collecting for undertow (via CLI /subsystem=undertow:write-attribute(name=statistics-enabled, value=true))
      3. Deploy application with servlet which uses sessions (ideally setup session timeout to 1 minute), attached simple-servlet.war which contains such servlet
      4. Create request to that servlet curl -i http://127.0.0.1:8080/simple-servlet/counter -c cookie.txt -b cookie.txt
      5. wait for the session to expire (wait more than 1 minute, you can then try another request to see it has expired)
      6. check the statistics => run via CLI /deployment=simple-servlet.war/subsystem=undertow:read-resource(include-runtime=true) and see that session-avg-alive-time remains 0 even though expired-sessions has non zero value.
      Show
      Start EAP 7 Enable statistics collecting for undertow (via CLI /subsystem=undertow:write-attribute(name=statistics-enabled, value=true) ) Deploy application with servlet which uses sessions (ideally setup session timeout to 1 minute), attached simple-servlet.war which contains such servlet Create request to that servlet curl -i http://127.0.0.1:8080/simple-servlet/counter -c cookie.txt -b cookie.txt wait for the session to expire (wait more than 1 minute, you can then try another request to see it has expired) check the statistics => run via CLI /deployment=simple-servlet.war/subsystem=undertow:read-resource(include-runtime=true) and see that session-avg-alive-time remains 0 even though expired-sessions has non zero value.

    Description

      Statistics for session-avg-alive-time in /deployment=xxx.war/subsystem=undertow isn't counted and remains 0 all the time.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: