This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I'm looking for a piece of code that will return the session object size. Any ideas? Thanks.
Author and all-around good cowpoke
posted 14 years ago
Due to the basic structure of Java, you are never going to be able to get the in-memory size of a session. If all of your session storage objects are serializable, you could write the session to a file or a ByteArrayOutputStream and see how large the serialized form is. Bill