Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

MXBean question in regards to tomcat

Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have written a small utility to fetch information from tomcat in regards to sessions. The utility will send email if we go above certain thresholds. The problem I have is the number and I can figure out why the numbers show like the show:

This is the explanation about the data taken from jconsole:

Active sessions: Number of sessions at this moment
Total sessions: Total number of sessions created by this manager
Expired sessions: Number of sessions that expired (Does not include explicit invalidations)

These are our number:

Number of active session are: 63
Number of total sessions are: 1357
Number of expired sessions are: 2756

Why are the expired sessions more than the total sessions?

Any ideas?

We are running 2 app servers with a load balancer.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic