Is there a simple, efficient, and accurate way to measure session size in a servlet-based application? Preferably, the measurement method should be independent of the application server / container.
I tried to measure the size of the session using the lambda probe on Tomcat 7, but it seemed to me that I was inaccurate, inaccurate, slow and buggy. I think there should be a simple easy way, because almost every decent Java EE developer cares about session size.
I want to emphasize the test of my application and measure the bloat of the session.
source share