Java 到数据库连接异常
Java to DB connection exceptions
我们正在开发 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:
需要帮助解决问题
已尝试这些链接中的解决方案
Hibernate Session Could not open for transaction
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
实际上该项目非常大,并且有多个线程 运行 我们收到此错误是因为我们超过了 mysql 服务器可以处理的最大连接数,在我们的案例中为 300 .
我们正在开发 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:
需要帮助解决问题
已尝试这些链接中的解决方案
Hibernate Session Could not open for transaction
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
实际上该项目非常大,并且有多个线程 运行 我们收到此错误是因为我们超过了 mysql 服务器可以处理的最大连接数,在我们的案例中为 300 .