This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, If I serialise a http session to obtain the size in bytes how accurate is it? Is the true size of the session in the app server likely to be much different to the size seen when serialised? Cheers, Steve
I may have misunderstood the question. Are you trying to figure out the peristent size, or the in-memory size? They are not the same. The persistent size of an object is much larger than the memory it consumes. My previous post assumes you are interested in the persistent size. If you want to know the in memory size it is not quite that simple, but here is an article that I found that will allow you to figure it out. http://www.webgain.com/communities/developers/resources/articles/newsletter_1.html Cheers
Joined: Jan 13, 2002
Hi, We've been experiencing Out of Memory errors with Websphere 4.0 and I am trying to establish the size of the session at various points in the application - so I guess I'm interested in the in memory session size - I was hoping that the serialised session size will be indicative of the in memory size but it appears not. I'll take a look at the article you suggested. Thanks for the help, Steve