Is there an maximum amount of data that can be stored in a single session? I know that it is a bad deal to store lots of data just in the session. However, is there a limit to the amount that is stored, if so how is the application notified that this limit has been reached? Is there an exception just for this?
Context: I’m referring to Tomcat 6.0, wihtout being clustered, using the StandardManager (for Sessions).
Never heard about such a limit in Tomcat, behind the scenes it is just a map, so the heap is the limit, probably.
But if your session is so huge, you might consider synchronization on session, as modifying large objects might increase the risk of some race-conditions (accessing the session is not synchronized between different threads/request from the same user for performance reasons – you are making a choice, whether you can accept the risk or not).