This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to identify session size during runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to identify session size during runtime" Watch "How to identify session size during runtime" New topic
Author

How to identify session size during runtime

S Venkatesh
Ranch Hand

Joined: Jun 27, 2005
Posts: 464

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

Joined: Mar 22, 2000
Posts: 12271
    
    1
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


Java Resources at www.wbrogden.com
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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


Sarath Mohan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to identify session size during runtime
 
Similar Threads
Session IDs are different from GET and POST method
How to identify the current running context?
Difference between Compiler Error & Runtime Exception
Runtime Exception V/s Compiletime Exception
New conversation for each new window/tab