tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Class unloading in tomcat - PermGen Space
Date Tue, 14 Sep 2010 11:52:10 GMT
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].



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

View raw message