Forums Register Login

How to know size of a session

+Pie Number of slices to send: Send
How to know size of a session ?
+Pie Number of slices to send: Send
There are different ways to measure them.

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.

What exactly are you trying to do?
+Pie Number of slices to send: Send
Moreover, you can search the same forum or JSP forum with a string, "session size", and here you get many results.

cheers.
+Pie Number of slices to send: Send
"Sunny",

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.

Thanks!
bear
Forum Bartender
+Pie Number of slices to send: Send
Thanks Ben...

Now i got clear idea about the size of session...

thanks bear for your advice on naming policy... i changed my display name.
+Pie Number of slices to send: Send
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.
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
https://gardener-gift.com


reply
reply
This thread has been viewed 956 times.
Similar Threads
Kely Help !!!!!!!!!!!!!!!
pool Size for session beans ?
How to set session id manually ?
size of session
size of objects in session
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:24:33.