You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/11/06 14:44:33 UTC

[Bug 53081] WebappClassLoader causes java.lang.OutOfMemoryError in findResourceInternal()

https://issues.apache.org/bugzilla/show_bug.cgi?id=53081

vladk <vl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vladk.dev@gmail.com

--- Comment #3 from vladk <vl...@gmail.com> ---
We are observing significant performance degradation caused by this fix. In our
case, the DocumentBuilderFactory.newInstance() method looks for class path
resources. Before that fix the WebAppClassloader cached resources it had found
and only the first call was slow. Now it scans jars on the classpath in each
call and reading a big signed jar takes quite long.

We should be able to solve our problem by using
javax.xml.parsers.DocumentBuilderFactory system property, but this change in
the WebAppClassloader can cause performance degradation at other places.

Is there any better way to solve the mentioned OutOfMemoryError?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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