-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
线上环境升级到6.1.0,服务器CPU直接99%以上,下不来,接口全部无响应 #789
Comments
使用6.1.0的同时,使用加下面依赖试试(超时10秒): <dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>sqlparser-timeout</artifactId>
<version>6.1.0</version>
</dependency> 可以jstack看看线程在做什么,如果很多线程都停留在jsqlparser,就有可能是解析超时。 |
如果超时的概率很高,就发个小版本默认加上超时。 |
我这也有这个问题 ,用地sqlparse 4.9,pagehlper6.10 某些sql会导致线程飙升,cpu到100% java.lang.Thread.State: RUNNABLE |
是因为SQL解析超时的问题吗?框架还使用了mybatis-plus最新版3.5.4.1
降到6.0.0,恢复正常,如果是解析超时,我看错误日志也看不出来有任何问题,怎么看解析超时啊
The text was updated successfully, but these errors were encountered: