tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 53081] New: WebappClassLoader causes java.lang.OutOfMemoryError in findResourceInternal()
Date Fri, 13 Apr 2012 21:46:53 GMT

             Bug #: 53081
           Summary: WebappClassLoader causes java.lang.OutOfMemoryError in
           Product: Tomcat 7
           Version: 7.0.26
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
    Classification: Unclassified

When examining the code of WebappClassLoader#findResourceInternal()
I came to the conclusion that findResourceInternal() always loads the binary
content of the resource, however binary content is only used in e.g.
findClassInternal() and obviously not needed in findResource(). In certain
cases this can cause OutOfMemoryError, for example when a big media file is
packaged with application.

The example of stack trace is given here:

Solution: the binary content should be loaded for certain types of resources
(.classpath or .properties [only if fileNeedConvert is true]).

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message