简体   繁体   English

SQL Server定期断开连接

[英]SQL server periodically gets disconnected

Our environment is: Windows Server 2003, Service Pack 2 SQL Server Express 2005 SQLServer JDBC driver 1.2 (also tried Jtds) Sun JDK 1.6 (we tried this on JDK 1.5 as well) There is no virus protection software on the host, and no firewall is enabled. 我们的环境是:Windows Server 2003 Service Pack 2 SQL Server Express 2005 SQLServer JDBC驱动程序1.2(也尝试过Jtds)Sun JDK 1.6(我们也在JDK 1.5上也尝试过)主机上没有病毒防护软件,也没有防火墙已启用。

We have Web application deployed in JBOSS 4.0.2. 我们已经在JBOSS 4.0.2中部署了Web应用程序。 Our problem is that the JDBC connection to SQL server periodically gets disconnected, and then we can't reconnect to the database at all, unless we physically restart the server on which JBOSS deployed. 我们的问题是,到SQL Server的JDBC连接会定期断开连接,因此,我们根本无法重新连接到数据库,除非我们物理上重新启动部署了JBOSS的服务器。

we are getting following error in log. 我们在日志中收到以下错误。

Software caused connect on abort: recv failed 软件导致中止连接:recv失败

Note: We are able to connect to database using sample java test class. 注意:我们可以使用示例Java测试类连接到数据库。

Any suggestions would be most appreciated, as this is a serious, mission-criticial problem for us right now. 任何建议将不胜感激,因为这对我们现在是一个严重的任务批评问题。

Can you access the SQL Server using Management Studio? 您可以使用Management Studio访问SQL Server吗? If so how many connections are open? 如果是,则打开多少个连接?

Do you close your connections after querying? 查询后是否关闭连接?

What does the Task Manager tell, service still running; 任务管理器告诉您什么,服务仍在运行; mem/cpu usage. 内存/ CPU使用率。

Its a long shot but do you have enough disk space on C: and data-drive? 这是一个远景,但是您在C:和数据驱动器上是否有足够的磁盘空间?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM