本文介绍了tomcat7错误日志中的SocketException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 tomcat7-stderr。{date} .log
文件中发现以下警告。我的日志文件中充满了该日志。
I found following warning in tomcat7-stderr.{date}.log
file. My log file is filled with this log.
Mon Jun 30 12:27:47 GMT+05:30 2014 WARN: Caught while disconnecting...
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Socket is not connected
STACKTRACE:
java.net.SocketException: Socket is not connected
at java.net.Socket.shutdownInput(Unknown Source)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:2261)
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4697)
at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1630)
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:617)
at com.mchange.v2.c3p0.impl.NewPooledConnection.closeMaybeCheckedOut(NewPooledConnection.java:247)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:607)
at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:1012)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:636)
** END NESTED EXCEPTION **
我在网上搜索了很多内容,但都没有成功。似乎有关c3p0连接池。为什么此异常/警告正在记录?
I searched a lot on net but no success. It seems about c3p0 connection pool. Why this Exception/Warn is logging? How to solve it?
一些额外信息
- 我正在使用c3p0连接池。
- 我正在使用命名的PIPE连接到MySQL服务器。
这是我的c3p0配置。
here is my c3p0 config.
MINPOOLSIZE=10
ACQUIREINCREMENT=1
MAXPOOLSIZE=500
INITIALPOOLSIZE=10
NUMBERHELPERTHREAD=100
MAXIDLETIME=10
MAXSTATEMENT=20
MAXSTATEMENTPERCONNECTION=5
IDLECONNECTIONTESTPERIOD=120
ACQUIRERETRYATTEMPT=10
ACQUIRERETRYDELAY=100
AUTOCOMMITONCLOSE=false
BREAKAFTERACQUIREFAILURE=false
TESTCONNECTIONONCHECKOUT=true
TESTCONNECTIONONCHECKIN=true
推荐答案
Mysql论坛已确定将此错误作为JVM错误。因此,ConnectJ不会提供任何修复。请在中进行检查以获取更多详细信息。我相信,在您这边没有什么可做的。
Mysql forum had been decided that this bug as JVM bug. So, there will not be any fix from ConnectJ. Please check here for further details. I believe, there is nothing much to do from your side.
这篇关于tomcat7错误日志中的SocketException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!