tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Belov" <>
Subject JSP class loader
Date Fri, 21 Jul 2006 15:25:26 GMT
Hi All,


I work on application which allows user to deploy/undeploy large number of
the JSP pages to AppServer (JBoss 4.03sp1 + Tomcat 5.5). Standard Tomcat
class loader caches classes for all deployed JSP internally and never clean
its cache. This brings JVM to PermGen overflow error after several days of
system work.


To resolve this problem I decide to develop my own class loader with
different cache strategy. But I don't know how I can plug it in Tomcat
without Tomcat code changing.


For now I see one solution - develop my own servlet for JSP processing
instead of standard one (org.apache.jasper.servlet.JspServlet) which will
use my class loader for loading classes for JSP pages. This servlet can be
configured via conf/web.xml. But is there any easier solution?


Any help/comments are welcome.


PS: I know, PermGen size can be increased with JVM option -XX:PermSize. It
helps, but it doesn't solve problem completely.




With Best Regards,
Nikita Belov


E-mail:   <>
ICQ:     309-204-808


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message