tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject RE: number of sessions and OutOfMemoryException
Date Thu, 02 Dec 2004 21:58:31 GMT
well, that's one (not so good) way to look at it. i can't think why you would want session
data to hang around forever in your web application. either add session-timeout, or determine
a time when session.invalidate() can be called. you don't really want to throw memory at a
system that is effectively supporting a memory leak.

	-----Original Message----- 
	From: Mark [] 
	Sent: Thu 02/12/2004 21:40 
	To: Tomcat Users List 
	Subject: RE: number of sessions and OutOfMemoryException

	I'm I getting it right: that once OOME occures I need more memory or
	need to deside in my application how to remove sessions ?
	--- "Shapira, Yoav" <> wrote:
	> Hi,
	> >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:
	Do you Yahoo!?
	Yahoo! Mail - Helps protect you from nasty viruses.
	To unsubscribe, e-mail:
	For additional commands, e-mail:

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

View raw message