生产环境有一段时间没改动什么,突然某天很多用户使用时,页面地方很多超时,直接重启系统解决,系统是部署在阿里云上的。
java.io.EOFException: Unexpected EOF read on the socket;
The error occurred while executing a query
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: DatebookHikariCP - Connection is not available, request timed out after 30000ms.
java.io.EOFException: Unexpected EOF read on the socket;CannotGetJdbcConnectionException
在未做任何改动的生产环境中,阿里云上部署的Java应用突然出现页面超时问题,经排查发现为SpringJDBC的HikariCP连接池超时。解决方式为重启系统,需深入分析可能的原因,如数据库连接管理设置等。
摘要由CSDN通过智能技术生成