On 14/09/2010 12:42, shivanic wrote: > > In my application there are over a thousands of jsp pages existing. So, > consequently over a period of time we run out of perm gen space. I have read > that classes are only unloaded if there are no references to the classes or > the classloader and both can be removed. > > From my understanding, in Tomcat, the webapp class loader would unload > classes only when the application is either un-deployed or redeployed. If > there is no possibility to change the design of the application , please > guide as to how to avoid the issue of perm gen space when the number of > jsp's accessed is huge?. > > Would creating custom class loader help - how would we then decide when to > remove classes from the custom classloader and on what basis would we > loading our jsp's from it?.Thanks.
Upgrade to Tomcat 7 (it is still beta but pretty stable for non-Servlet 3.0 functionality) and use the new maxLoadedJsps attribute of the JSP servlet [1]. Mark [1] http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org