How many users are connected to a Midtier?

Version 15
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Remedy AR System Server


    COMPONENT:

    AR System Mid Tier


    APPLIES TO:

    All tomcat based web applications



    QUESTION:

    Can it be known how many users are connected through a midtier server? 
     


    ANSWER:

    You can find the number of active sessions on a single Tomcat instance. This number is very approximate to the number of users currently connected

    Some exceptions are: 
    - User closed browser and within 1 minute this session will remain active
    - Users connecting to login.jsp (even before entering credentials) page will be considered as active sessions 
    - Users staying at config.jsp page will be considered as active sessions

    JConsole is included with all JDK installations so if your server or client machine has a JDK you already have the tool

    In order to use it remotely, your tomcat JVM needs these 4 java options
    Note:  If you launch jConsole directly on the midtier server, you do not need the java options added
     
      -Dcom.sun.management.jmxremote
      -Dcom.sun.management.jmxremote.port=19999
      -Dcom.sun.management.jmxremote.ssl=false
      -Dcom.sun.management.jmxremote.authenticate=false

    Then you can connect to your tomcat process with JConsole 
    a)  Launch the JConsole.
    b)  Use the Remote Connection option with the format of  hostname:19999
     
    Once connected with JConsole you need to navigate as follows:  Catalina -> Manager -> /arsys -> localhost->Attriutes
    The following attributes may be of interest:
    a)  activeSessions - tell you the number of active sessions at that moment in time.
    b)  maxActive  -  the max number of concurrent active sessions from time of server startup
    c)  sessionCounter - the cumuative count of sessions from time of server startup
     


    Article Number:

    000112047


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles