Thanks Christopher for your prompt reply! I am doing some performance tuning of Tomcat and wanted to understand if the servlet was unloaded after a period of inactivity like an EJB is. I am using a cache in the servlet and the amount of caching is small but helpful and having the servlets say unload every 30min would offset the use of a small cache. Also, FYI I just upgraded to lastest Tomcat 7 release and java running under 64-bit 1.7.0_04 JDK and it is working fine right now. I am using APR and had to use a 64-bit dll for that of course. Regards, Tony
--- On Tue, 5/29/12, Christopher Schultz <ch...@christopherschultz.net> wrote: From: Christopher Schultz <ch...@christopherschultz.net> Subject: Re: For TC 7 servlets stay in memory how long? To: "Tomcat Users List" <users@tomcat.apache.org> Date: Tuesday, May 29, 2012, 10:10 AM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tony, On 5/29/12 11:17 AM, Tony Anecito wrote: > For TC 7 how long do servlets stay in memory if not invoked by a > client or another servlet? How does one control the length of time? > Is the there a config setting in a file somewhere? I don't believe Tomcat does any auto-unloading of servlets once they are loaded. Are you in need of such a feature? Servlets themselves should be very lightweight in terms of memory usage, since they basically have to be stateless in order to avoid all kinds of threading issues. Are you using SingleThreadedModel or anything like that? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/E9P4ACgkQ9CaO5/Lv0PCffwCcDEf1q6mQ5koGwJD1UOn5EBJh ZHQAnRa9lTbJNAzIEbgxUuXtwXEZUXDe =MsSC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org