tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DAVIS, SCOTT A. (AIT)" <>
Subject Servlet unloading
Date Tue, 08 Aug 2000 14:31:10 GMT
I'm new here, so I apologize if this has been brought up before.

Is it possible to set the amount of time since a servlet is last accessed
before Tomcat unloads the servlet from memory?  As far as I can tell, it
currently keeps servlets in memory indefinitely by default.

I'm working on a intranet application with a number of servlets which each
open a connection to a remote database on initialization and close it when
they are destroyed.  The remote database is rebooted at 5:30am each Monday
morning, breaking any existing connections with the servlets.  Tomcat has to
restarted for the servlets to reconnect the next time they are accessed.

The intranet application is only accessed during work hours during the week.
If I could set Tomcat to unload servlets after an hour or two of non-use, I
wouldn't have to restart Tomcat each Monday morning.  (Actually, I should
probably restart it anyway just to make sure, so this may be a moot point.)

I appreciate any help on this.


Scott Davis

View raw message