Bug 49939

Summary: Expose a method via JMX which empties the webapp file cache
Product: Tomcat 6 Reporter: Pid <pidster>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: All   
OS: All   
Attachments: The patch exposes the "removeCache" method to JMX object. By making the method public, we are able to invoke from java console mangement to clear the cache entry.

Description Pid 2010-09-16 05:24:01 UTC
The JMX Object "Catalina:type=Cache,host=localhost,path=/appPath" exposes several methods which interact with the cache.

A useful addition would be a mechanism to entirely empty the cache.
Comment 1 Faisal 2010-12-18 15:07:34 UTC
Created attachment 26421 [details]
The patch exposes the "removeCache" method to JMX object. By making the method public, we are able to invoke from java console mangement to clear the cache entry.
Comment 2 Mark Thomas 2014-10-14 19:35:25 UTC
This has been fixed in 8.0.x for 8.0.15 omwards. I do not intend to back-port the feature.