A session is really just a map of references to objects on the heap. Several sessions can hold references to the same object. Becuase of this the amount of memory your sessions consume is often smaller (in bytes) than the amount of disk space required to hold a serialized copy of the same sessions.
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Sunny, You may want to take a look at http://javawebparts.sourceforge.net/ There is a tool in that package for measuring session size. Since it is open source, you can explore to see how they're doing it.
Post by:autobot
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
a bit of art, as a gift, the permaculture playing cards