tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaroslav Sokolov <>
Subject Re: What's about unloading policy of jsp-servlets ?
Date Fri, 03 Mar 2006 13:24:59 GMT
I think that is so as minimum because of after applying the patch it can be retrieved
nearely all the jdk documentation (except of some huge files ( > 2M ) ).

One more thing - average size of *.class file in the specified sample is 30-50K.


Yoav Shapira wrote:

> What makes you think your OOME has to do with the number of JspServlet
> instances?  Run a profiler, you might be surprised.
> Yoav
> On 3/3/06, Yaroslav Sokolov <> wrote:
>>I have found, that once loaded jsp-servlets are never unloaded.
>>To test I just configured tomcat to process *.html files by JspServlet
>>and then traversed jdk documentation. The result was not very exciting -
>>after browsing ~ 150 pages tomcat cried "java.lang.OutOfMemoryError: Java heap space"
>>and started not to work...
>>So maybe it would be not a bad idea to try to keep in memeory just some fixed
>>number of jsp-servlets ?
>>I have written a sample implementation of such a policy, but it is not very elegant
>>as internal structure containing jsp-servlets, it seems, was not designed for such


> --
> Yoav Shapira
> Senior Architect
> Nimalex LLC
> 1 Mifflin Place, Suite 310
> Cambridge, MA, USA
> /
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message