简体   繁体   中英

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

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; nested exception is org.springframework.transaction.CannotCreateTransactionException

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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