Skip to content
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

日志中是否有报错或者预警 #795

Open
heqs opened this issue May 4, 2023 · 4 comments
Open

日志中是否有报错或者预警 #795

heqs opened this issue May 4, 2023 · 4 comments

Comments

@heqs
Copy link

heqs commented May 4, 2023

          日志中是否有报错或者预警

Originally posted by @zwyqz in #791 (comment)
INFO | jvm 1 | 2023/04/16 18:12:07 | io.mycat.MycatException: com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 30000, active 2000, maxActive 2000, creating 0

@zwyqz
Copy link
Collaborator

zwyqz commented May 5, 2023

连接池的连接没有及时释放,可能是sql执行时间太久,需要配置druid的queryTimeout参数进行观察,配置这个参数需要修改代码。

@heqs
Copy link
Author

heqs commented May 5, 2023

连接池的连接没有及时释放,可能是sql执行时间太久,需要配置druid的queryTimeout参数进行观察,配置这个参数需要修改代码。

不是哦,我如果直接spring boot连原始数据库是没问题的,我吧mycat的jar包更新成最新的mycat2-1.22-release-jar-with-dependencies.jar,连接数就会释放了,当时的旧版本是mycat2-1.21-release-jar-with-dependencies.jar,是旧版本有BUG?

1 similar comment
@heqs
Copy link
Author

heqs commented May 5, 2023

连接池的连接没有及时释放,可能是sql执行时间太久,需要配置druid的queryTimeout参数进行观察,配置这个参数需要修改代码。

不是哦,我如果直接spring boot连原始数据库是没问题的,我吧mycat的jar包更新成最新的mycat2-1.22-release-jar-with-dependencies.jar,连接数就会释放了,当时的旧版本是mycat2-1.21-release-jar-with-dependencies.jar,是旧版本有BUG?

@zwyqz
Copy link
Collaborator

zwyqz commented May 5, 2023

解決就好,旧版本是有一些问题。没有进行优化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants