简体   繁体   English

Java到数据库的连接异常

[英]Java to DB connection exceptions

We are developing web application our tomcat server and mysql server runs on two different servers and we are getting the errors 我们正在开发Web应用程序,我们的tomcat服务器和mysql服务器在两个不同的服务器上运行,并且出现错误

org.hibernate.TransactionException: JDBC begin transaction failed: 

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 86,402,200 milliseconds ago.

java.net.SocketException: Broken pipe

org.hibernate.exception.JDBCConnectionException: 

need help to solve the issue 需要帮助解决问题

have tried the solutions from these links 从这些链接尝试了解决方案

Hibernate Session Could not open for transaction 休眠会话无法打开进行交易

First Login: HTTP Status 500 - Request processing failed; 首次登录:HTTP状态500-请求处理失败; nested exception is org.springframework.transaction.CannotCreateTransactionException 嵌套的异常是org.springframework.transaction.CannotCreateTransactionException

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:通信链接失败

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:通信链接失败

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:

实际上,该项目非常大,并且有多个线程正在运行,我们收到此错误,因为在我们的案例300中,我们超出了mysql服务器可以处理的最大连接数。

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

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