# Get active sessions count via JMX

**URL:** <https://forum.keycloak.org/t/get-active-sessions-count-via-jmx/4262>\
**Category:** Configuring the server\
**Created:** [August 13, 2020, 10:40am UTC](https://forum.keycloak.org/t/get-active-sessions-count-via-jmx/4262 "2020-08-13T10:40:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![defus](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/defus/32/1233_2.png) [@defus](https://forum.keycloak.org/u/defus)\
**Post date:** [August 13, 2020, 10:40am UTC](https://forum.keycloak.org/t/get-active-sessions-count-via-jmx/4262/1 "2020-08-13T10:40:53Z")

</div>

Hello,

I want to monitor keycloak with dynatrace. Actually, dynatrace doent show informations about active sessions.

**How can i access active sessions count via JMX in keycloak.**

I already have access to jconsole. Actually, there is this attribute availlable : **jboss.as:deployment=keycloak-server.war,subsystem=undertow**

But unfortunately, his value is 0.

Any help will be appreciate.

Landry
