tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaroslav Sokolov <yarick...@gmail.com>
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.

Regards,
Yarick.

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 <yarick123@gmail.com> wrote:
> 
>>Hi,
>>
>>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
actions...
>>
>>Regards,
>>Yarick.

[skipped]

> --
> Yoav Shapira
> Senior Architect
> Nimalex LLC
> 1 Mifflin Place, Suite 310
> Cambridge, MA, USA
> yoavs@computer.org / www.yoavshapira.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 
> 


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


Mime
View raw message