DX Application Performance Management

 View Only
  • 1.  number session in Jboss

    Posted Feb 19, 2016 07:33 AM

    Dears,

     

    I want to know the number of sessions connected to a web application deployed in Jboss, but I did not found the metric can give us this information

     

    please help?

     

    BR



  • 2.  Re: number session in Jboss

    Broadcom Employee
    Posted Feb 19, 2016 07:54 AM

    Hello Mradoune,

     

    I got something similar, in that case we were running with Tomcat, I guess you can try to customize:

     

    -TraceOneMethodOfClass: org.apache.catalina.session.StandardSession expire
    (Z) V SimpleDecrementor "Tomcat: Number of sessions"
    TraceOneMethodOfClass: org.apache.catalina.session.StandardSession
    SimpleIncrementor "Tomcat: Number of sessions"

     

    Gustavo.



  • 3.  Re: number session in Jboss

    Posted Feb 19, 2016 10:47 AM

    Thanks Gustavo, but if the user disconnect(logout) will have a wrong number of current sessions,  do you have any other solution?

     

    BR



  • 4.  Re: number session in Jboss

    Broadcom Employee
    Posted Feb 19, 2016 04:28 PM

    Gustavo's method can be used if you know the methods that logout a user and expire a session. The SimpleDecrementor can be used on these methods. It may be possible to also expose this metric via jmx and then enable jmx metrics in Introscope.



  • 5.  Re: number session in Jboss

    Posted Feb 24, 2016 12:13 PM

    Many Thanks, using JMX I can get the number of active session.

     

    BR