Re: Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-12 Thread David Cassidy

Mark,

Okies will do

David

On 12/10/09 18:05, Mark Thomas wrote:

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

   


Re: Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-12 Thread David Cassidy

Chris

Yes - ouch indeed !

Yes i'll try them as well - might have a look at the source as well see 
if there is anything to turn of teh file based validation


I had a quick look at the caching and thats totally different sadly.

No its definitely the things that are not found.
When i get an out of memory the JVM will dump the heap. I've walked it 
(i know 1 gig...)
and its really things that are not found. there are no files by those 
names so...


Hey ho

D

On 12/10/09 17:50, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 10/12/2009 12:03 PM, David Cassidy wrote:
   

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
 

Ouch.

I can't see any obvious way to disable the file-based validation
configuration. You'd have to ask the struts folks about that.

You could try setting cachingAllowed="false" in your  element
in context.xml. This page documents that attribute to disable caching of
static resources:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

You could also play with the cacheTTL setting, too.

It's possible that the caching you are disabling is merely the contents
of the files that /are/ found. I haven't looked at the code, though.

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

iEYEARECAAYFAkrTXl0ACgkQ9CaO5/Lv0PDfYwCeMp/92uTjLKcMLF6Biku7L91k
ip0An1n4+SHQmDPEdoZAVPL4sceelyf0
=6LS+
-END PGP SIGNATURE-

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

   


Re: Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-12 Thread Mark Thomas
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 10/12/2009 12:03 PM, David Cassidy wrote:
> 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

Ouch.

I can't see any obvious way to disable the file-based validation
configuration. You'd have to ask the struts folks about that.

You could try setting cachingAllowed="false" in your  element
in context.xml. This page documents that attribute to disable caching of
static resources:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

You could also play with the cacheTTL setting, too.

It's possible that the caching you are disabling is merely the contents
of the files that /are/ found. I haven't looked at the code, though.

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

iEYEARECAAYFAkrTXl0ACgkQ9CaO5/Lv0PDfYwCeMp/92uTjLKcMLF6Biku7L91k
ip0An1n4+SHQmDPEdoZAVPL4sceelyf0
=6LS+
-END PGP SIGNATURE-

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



Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-12 Thread David Cassidy

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 ?

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