I want to measure the percentage of memory used by HttpSession in a web application. Is there any way to measure memory consumption with all HttpSessions in a running Tomcat instance at an arbitrary point in time without modifying the application? What I have tried In Tomcat, the concrete class of HttpSession is org.apache.catalina.session.StandardSession. I have profiled the application with