tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader
Date Mon, 12 Oct 2009 17:05:23 GMT
David Cassidy wrote:
> Guys
> 
> Tomcat 6.0.20, java 1.6, linux x64
> 
> org.apache.catalina.loader.WebappClassLoader records every resource you
> asked
> for that doesn't exist.
> 
> On our site we have alot of pages ( > 800,000 )
> all of which are using struts2 with validation.
> every hit means the validator does a request for a resource
> actionName-validation.xml
> 
> This then gets cached in the WebappClassLoader
> about line 249
> 
>     /**
>      * The list of not found resources.
>      */
>     protected HashMap notFoundResources = new HashMap();
> 
> Can this be made into a weak hash map perchance ?

Please create a bugzilla entry for this so it doesn't get lost.

Cheers,

Mark
> 
> or something so that it won't invoke a out of memory.
> I'm also looking at removing the validator from those urls
> if anyone knows how to tell the validation interceptor that we don't use
> the xml files
> and ONLY use annotations then that would be great :)
> 
> Ta
> 
> D
> 
> 
> 
> 
> 




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


Mime
View raw message