tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Configuring tomcat to release the webapp jar file handles
Date Wed, 06 Jan 2010 13:59:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vijay,

On 1/6/2010 1:12 AM, Vijay wrote:
>     I have a webapp that has 300 jar files bundled in WEB-INF/lib. Most of
> the classes in these jar files need to be loaded during the startup of the
> webapp. Does tomcat release the jar file handles once the class loader is
> done loading the classes? It does not seem to be the case.
> Ideally, tomcat should close the jar file handles that the webapp no longer
> needs.

I haven't looked at the code, but it would seem that the
WebappClassLoader shouldn't need file handles to remain open to do it's
up-to-date checking of .jar and .class files.

WebappClassLoader /does/ contain a JarFile[] member, which may keep file
handles open. I haven't looked at the code -- only the Javadoc.

> Is there a way to configure tomcat to have an agressive policy to close
> unused file handles?

None that I know of: patches are always welcome.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktEly8ACgkQ9CaO5/Lv0PAKrgCgwCSa9Xy5MVlpYBy+Gn3AZXeE
jukAn3DpombmSP3FXZ8EPTobtgDe09b8
=GKts
-----END PGP SIGNATURE-----

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


Mime
View raw message