请求帮助
使用的gorm的框架 执行的是原始sql语句
现在遇到问题是出现数据库链接过大 没有释放已经数据库链接 导致数据连接数爆了
使用defer延迟关闭功能
数据库错误日志
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1025542612 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
stack_bottom = 7f6eab299668 thread_stack 0x40000
information that should help you find out what is causing the crash.
2022-04-30 00:05:39 134967 [Warning] Buffered warning: option 'max_connections': unsigned value 171890 adjusted to 100000
有疑问加站长微信联系(非本文作者)