aspose file tools*
The moose likes Servlets and the fly likes How to calculate exactly the size of the Session ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to calculate exactly the size of the Session ?" Watch "How to calculate exactly the size of the Session ?" New topic
Author

How to calculate exactly the size of the Session ?

Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 191
Hi all,
I'd like to know if it's possible to calculate the size of the Session object in a web application so that I can forecast how much memory my application will need for example if users will increase by a certain %
Thanks in advance
Francesco


WildFly 8 Administration Book - JBoss Tutorials
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You would need a profiler. (JProbe, Optimizeit).

Remember, a session is not really a placeholder. It holds a map of references to objects (living on the heap) bound to it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

I also seem to always get Spam E-mail on how to increase the size.

Oh, wait, I just checked that wasn't about Sessions.



Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Originally posted by Mark Spritzler:
I also seem to always get Spam E-mail on how to increase the size.

Oh, wait, I just checked that wasn't about Sessions.



Mark


darn, no wonder it didn't work


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to calculate exactly the size of the Session ?