New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
点击在线客服,卡顿然后504报错。 #914
Comments
504报错,有后台更多日志吗? |
2023-08-29 23:52:41.446 ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction] with root cause [http-nio-8035-exec-1] |
代码是哪一个版本? |
今天有人反馈了类似问题,排查怀疑是数据库版本不对,建议使用项目源码 docker-compose里的 image: cskefu/mysql:5.7 |
java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms.从这行日志来看,是由于没有可用的连接,hikari连接池默认最大连接为10,可以适当调大这个数值进一步观察 |
其配置为spring.datasource.hikari.maximum-pool-size |
另外,建议监控数据库的负载情况,必要时升级数据库配置 |
v8 版本号 |
哪里修改这个? |
用项目源码的数据库。一样问题。。。 |
docker-compose.yml文件中的environment下 |
描述
点击在线客服,卡顿然后504报错。
功能
提升了配置,调整了 hikari pool 也是一样。 一时候就很快,一下就卡顿。
操作系统
代码版本
developer 版本
The text was updated successfully, but these errors were encountered: