I made a JVM heap dump of my tomcat server with jmap, and I’d like to figure out what is the size of all the sessions in memory.
As such I would like to know what type of object I should be looking for to estimate the sessions size.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a
javax.servlet.http.HttpSessionand the javadoc for it is here. Note that it’s an interface, but there’s a tomcat interface that extends itorg.apache.catalina.Session. I would look for all the classes that implement the Catalina Session interface;org.apache.catalina.cluster.session.DeltaSession,org.apache.catalina.cluster.session.ReplicatedSession, andorg.apache.catalina.session.StandardSession.I’m sure there are a few confounding variables which might make session tracking not 100% correlate to memory usage, but at least it’s a start.