开发者

tomcat classes from previous run remains

i am running an application which uses spring, hibernate, jsf, etc. the application also uses ha-jdbc to make the databases highly available. when the application is deployed for the first time, the app runs smoothly, but when it is un-deployed and deployed back, tomcat gives the fol开发者_如何学运维lowing error:

The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are still loaded in memory, thus causing a memory leak (use a profiler to confirm):

i am wondering how to get rid of this problem. any genius?

thanks in advance.


use a profiler (visualvm would do), do a heap snapshot, find the lingering objects, find the reference chain, and ponder why they are still referenced.

or, just restart tomcat for each deployment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜