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

关于连接池的问题 #81

Open
MrYZhou opened this issue Feb 3, 2024 · 1 comment
Open

关于连接池的问题 #81

MrYZhou opened this issue Feb 3, 2024 · 1 comment

Comments

@MrYZhou
Copy link

MrYZhou commented Feb 3, 2024

image

我这边用压测工具试了下。发现时间一长就出现
2024/02/03 12:14:52 C:/Users/lg/go/pkg/mod/github.com/acmestack/gorm-plus@v0.1.5/gplus/dao.go:172 dial tcp 127.0.0.1:3306: connectex: Only one usage of each socket address (protocol/network address/port) is normally permitted.
连接不够了。这个连接池的释放管理是不是有问题。下面查询语句一直都慢查询了。感觉似乎就是有空余连接没有释放卡住了。

还有另外一个是
2024/02/03 12:14:52 C:/Users/lg/go/pkg/mod/github.com/acmestack/gorm-plus@v0.1.5/gplus/dao.go:172 SLOW SQL >= 200ms
[7062.620ms] [rows:3] SELECT * FROM configs 这个日志计时的监控有没有办法关掉。

@OnlyPiglet
Copy link

image

我这边用压测工具试了下。发现时间一长就出现 2024/02/03 12:14:52 C:/Users/lg/go/pkg/mod/github.com/acmestack/gorm-plus@v0.1.5/gplus/dao.go:172 dial tcp 127.0.0.1:3306: connectex: Only one usage of each socket address (protocol/network address/port) is normally permitted. 连接不够了。这个连接池的释放管理是不是有问题。下面查询语句一直都慢查询了。感觉似乎就是有空余连接没有释放卡住了。

还有另外一个是 2024/02/03 12:14:52 C:/Users/lg/go/pkg/mod/github.com/acmestack/gorm-plus@v0.1.5/gplus/dao.go:172 SLOW SQL >= 200ms [7062.620ms] [rows:3] SELECT * FROM configs 这个日志计时的监控有没有办法关掉。

gorm-plus 应该没有对连接池的管理,都是gorm进行管理的,日志的设置也是 gorm 进行设置 和 gorm-plus 没有关系

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