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:   <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
ICQ:     309-204-808

 

Reply via email to