tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <sendmailtom...@yahoo.com>
Subject RE: number of sessions and OutOfMemoryException
Date Thu, 02 Dec 2004 21:40:14 GMT
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 ?

Thanks,
Mark.
--- "Shapira, Yoav" <Yoav.Shapira@mpi.com> 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 http://www.yoavshapira.com
> 
> 
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message