HFish icon indicating copy to clipboard operation
HFish copied to clipboard

[Bug] Mysql连接数过多,导致数据库查询出错

Open merlinxcy opened this issue 3 years ago • 0 comments

image image

2022-06-10 21:52:43.272 [ERRO] clients.go:83: insert host[pF3oVk7lcd3jnH0kfzgKAwIL] err: context canceled, INSERT INTO `hosts`(`disk_total`,`dns_info`,`host_id`,`os_arch`,`mem_used`,`time_zone`,`cpu_num`,`mem_total`,`disk_used`,`net_info`,`client_id`,`platform`) VALUES(0,'','','',0,'',0,0,0,'','pF3oVk7lcd3jnH0kfzgKAwIL','') 
Stack:
1.  hfish/internal/server/handler.AddClient
    /usr/local/share/internal/server/handler/clients.go:83
2.  github.com/gin-gonic/gin.(*Context).Next
    /root/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168
3.  hfish/internal/server/router.TlsHandler.func1
    /usr/local/share/internal/server/router/router.go:42
4.  github.com/gin-gonic/gin.(*Context).Next
    /root/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168
5.  hfish/internal/library/log.GinMiddleware.func1
    /usr/local/share/internal/library/log/log.go:67
6.  github.com/gin-gonic/gin.(*Context).Next
    /root/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:168
7.  github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
    /root/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:555
8.  github.com/gin-gonic/gin.(*Engine).ServeHTTP
    /root/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:511

推测是不是没有调用mysql close的操作

merlinxcy avatar Jun 11 '22 05:06 merlinxcy