tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: number of sessions and OutOfMemoryException
Date Thu, 02 Dec 2004 20:34:31 GMT


>If I set session-timeout to -1 in web.xml will I get eventualy
>OutOfMemoryException or Tomcat will remove the session and not die?

You will get OOMEs.  Session removal is your responsibility.

(BTW note that OutOfMemory is an Error, not an Exception, with
everything the former implies).

>Is there any easy way to calculate how much memory will be used per
>session ( I know what objects will be stored)

If you know the objects exactly, you can calculate, yeah, but it's
usually not worth the effort.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message