% ./bin/jboss-cli.sh --connect --controller=localhost:10090 --command="/deployment=hello.war/subsystem=undertow:read-attribute(name=active-sessions)" { "outcome" => "success", "result" => 100 } ## waited till sessions expired % ./bin/jboss-cli.sh --connect --controller=localhost:10090 --command="/deployment=hello.war/subsystem=undertow:read-attribute(name=active-sessions)" { "outcome" => "success", "result" => 74 }