Vladimer,
All objects are available for garbage collection because the container releases the references once it is shutdown (gracefully or not) but at what point the JVM calls finalize() and runs garbage collection on the objects depends on the JVM implementation.
To take it one step further, I believe that there are ways to set the maximum heap with command line arguments in version 1.3 and up. The following links describes them:
http://java.sun.com/docs/hotspot/VMOptions.html
http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html
Hope that helps,
Mr. Ariel S. Valentin mailto:[EMAIL PROTECTED]
From: Vladimer Shioshvili <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: servlet context scope variables Date: Sun, 18 Jul 2004 18:22:37 -0400
I know this question is more of a servlet spec question, but I hope someone has an answer..
if i have an object in the servlet context scope, if tomcat is shutdown gracefully would the object get finalized?
thanks, Vlad
________________ Vladimer Shioshvili
QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
