aspose file tools*
The moose likes Servlets and the fly likes How to keep large sessions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to keep large sessions?" Watch "How to keep large sessions?" New topic
Author

How to keep large sessions?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
This is one of the most common comment in wab application that session size is very large, reduce it.

But suppose, it is the requirement of system that we need big sessions (every user has its own/unique large data) then what can be done in that case...

One option may be, increase the memory of server. but I am not sure it is feasible or not.

Could any body think of some other options...

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

You could consider implementing a caching mechanism such that infrequently accessed session info is persisted to disk or database until needed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Bear Bibeault:
You could consider implementing a caching mechanism such that infrequently accessed session info is persisted to disk or database until needed.


Thanks Bear.
But suppose, we need any information any time or it is really not possible to indentify such part of session that is not always required, then what can we do???
dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
Cache will handle that and build a list of data more frequently requested in main memory and less on an external storage. Only one known way to extend RAM is moving part of it on an external storage.


Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to keep large sessions?