项目部署在服务器上面的log ,memory leak,内存溢出,来大神帮忙解决

Develop_Frank 2014-09-16 01:55:32
Aug 11, 2014 1:00:01 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 11, 2014 1:00:02 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/IGVault] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Exception in thread "Timer-1" Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Aug 11, 2014 1:00:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/IGVault] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
at org.hibernate.loader.Loader.doQuery(Loader.java:661)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.igvault.dao.impl.AndroidApnsMessageDaoImpl.getDevicess(AndroidApnsMessageDaoImpl.java:25)
at com.igvault.service.MigrationListenner$1.run(MigrationListenner.java:39)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
Caused by: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:35)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
... 17 more
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
... 20 more
...全文
414 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunaer 2014-09-17
  • 打赏
  • 举报
回复
先换成proxool , 这个连接池有自动关闭长时间没有关闭的连接的参数 , 然后找哪里出了到问题 . proxool也有弊端, 你配置之后就不能长时间保持这个链接了 , 到指定的最长活动时间后, 就会关闭这个链接, 不管你是使用还是不使用. 这里有个配置的例子 http://sunnylocus.iteye.com/blog/359570
weinianjie1 2014-09-17
  • 打赏
  • 举报
回复
引用 5 楼 Develop_Frank 的回复:
[quote=引用 4 楼 weinianjie1 的回复:] 不是重启就完事的,你如果不关闭数据库访问几下就蹦了,没等到你重启呢
那有什么解决方案吗?[/quote]排查代码是否关闭数据库了
Develop_Frank 2014-09-16
  • 打赏
  • 举报
回复
引用 4 楼 weinianjie1 的回复:
不是重启就完事的,你如果不关闭数据库访问几下就蹦了,没等到你重启呢
那有什么解决方案吗?
weinianjie1 2014-09-16
  • 打赏
  • 举报
回复
不是重启就完事的,你如果不关闭数据库访问几下就蹦了,没等到你重启呢
Develop_Frank 2014-09-16
  • 打赏
  • 举报
回复
引用 2 楼 weinianjie1 的回复:
多半是没有关闭数据库产生的,别以为用了c3p0池子就不需要关闭了
不好意思,我没太懂,服务器我有个每日重启的操纵,你的意思是数据库也要重启吗?
weinianjie1 2014-09-16
  • 打赏
  • 举报
回复
多半是没有关闭数据库产生的,别以为用了c3p0池子就不需要关闭了
Develop_Frank 2014-09-16
  • 打赏
  • 举报
回复
这个是jdbc的配置 <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <!-- Generated by MyEclipse Hibernate Tools. --> <hibernate-configuration> <session-factory> <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> <property name="dialect"> org.hibernate.dialect.MySQLDialect </property> <property name="connection.url"> jdbc:mysql://127.0.0.1:3306/dunk </property> <property name="connection.username">root</property> <property name="connection.password"></property> <property name="c3p0.min_size">20</property> <property name="c3p0.max_size">100</property> <property name="c3p0.timeout">500</property> <property name="c3p0.max_statements">50</property> <property name="c3p0.idle_test_period">1500</property> <property name="c3p0.acquire_increment">2</property> <property name="connection.driver_class"> com.mysql.jdbc.Driver </property> <property name="myeclipse.connection.profile">MySql</property> <property name="format_sql">true</property> <property name="show_sql">true</property> <mapping resource="com/igvault/entity/AndroidApnsMessages.hbm.xml" /> <mapping resource="com/igvault/entity/AndroidApnsDevices.hbm.xml" /> </session-factory> </hibernate-configuration>

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧