Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to calculate exactly the size of the Session ?

 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic