Start out by downloading sizeofag.jar and place it in "
Now change the two manager ("
Here's an example of the two files in Tomcat 6.
sessionDetail.jsp
sessionsList.jsp
See more info on calculating size of Java HTTP Sessions in this great article.
Update:There seems to be a problem with this approach. The Session size shown by sizeofag.jar is not the actual Session size as the Session contains a number of references to Tomcat and other classes that should not be considered when calculating the Session size. Thus, if you want to use this approach you should look at the difference in the size before and after you add attributes to the Session.
No comments:
Post a Comment