• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to identify session size during runtime

 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application. I want to identify the session size at runtime. Is it possible?

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although I understand what you are trying to get at, session size is a meaningless term. A session holds references to objects in a collection that associates a String with an object reference, each entry in the collection is really quite small.

The impact on memory use of keeping references in a session depends entirely on what the references are used for, especially how many other references point to the object. Therefore there is no easy way to quantify how much memory is being "used."

Bill
 
Sarath Mohan
Ranch Hand
Posts: 213
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have Java performance tuning applications like JProfiler. Google it and you can find the session size after you access each page in your application

Cheers
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic