首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >java liferay项目中的内存泄漏

java liferay项目中的内存泄漏
EN

Stack Overflow用户
提问于 2013-01-14 09:18:01
回答 1查看 1.3K关注 0票数 0

当我尝试重新部署我的项目时,有时它会耗尽内存并抛出perGemSpace错误(只需重新部署2-3次)我知道我的项目有一些内存泄漏问题,但找不到,有人可以给我解释一下。:-?

代码语言:javascript
复制
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/qlbc-portlet] registered the JDBC driver [net.sf.log4jdbc.DriverSpy] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/qlbc-portlet] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/qlbc-portlet] appears to have started a thread named [Thread-43] but has failed to stop it. This is very likely to create a memory leak.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/qlbc-portlet] appears to have started a thread named [Timer-4] but has failed to stop it. This is very likely to create a memory leak.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/qlbc-portlet] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/qlbc-portlet] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
Jan 14, 2013 1:12:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/qlbc-portlet] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
EN

回答 1

Stack Overflow用户

发布于 2013-01-14 09:19:42

看起来你没有注销你的驱动程序或者停止你的线程。

如果你不能很好的管理这些项目,你很可能会得到内存泄漏,就像这样。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14310227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档