-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gary,

On 9/14/2009 2:36 PM, garyh6 wrote:
> We are using Tomcat 5.5.  Does the class
> org.apache.catalina.loader.WebappClassLoader cache resources found from the
> findResource() method (which is called when Java code calls getResource())? 
> I looked at source code and it seems to suggest it does, but I want to make
> sure I was understanding it correctly?  If it does cache resources, are
> there any concerns about the cache growing so large that OutOfMemory errors
> occur?  Or is the cache flushed periodically based on some criteria such as
> size, last accessed, etc?

Resurrecting an old thread: someone asked a new question today which
reminded me of this one, so I thought I'd reply with a potential solution.

If you set the cachingAllowed attribute on your <Context> element to
"false", will this meet your needs? I believe this will disable caching
and therefore eliminate the memory concerns you have.

Today's question was about using SoftReference objects for caching, to
allow the GC to trigger a cache flush in the event of a memory demand.
You may want to watch the list and/or Tomcat's bugzilla for activity
regarding that request.

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

iEYEARECAAYFAkrToOoACgkQ9CaO5/Lv0PBXJgCff3vh/D+UMXVs7liyGpbvZalJ
o0UAniCgVarOEkw+6EfKhK5QV6oyGNcC
=gu8O
-----END PGP SIGNATURE-----

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

Reply via email to