douhan9748 2019-04-24 09:22
浏览 243

如何避免“连接过多”

2019-04-24 15:52:26.526 9818 ERROR oslo_messaging.rpc.server [req-857fec8a-7196-4425-85e4-389e2655a2c3 - - - - -] Exception during message handling: OperationalError: (pymysql.err.OperationalError) (1040, u'Too many connections') (Background on this error at: http://sqlalche.me/e/e3q8)

I used

"github.com/astaxie/beego/orm"
mariaDB

I can increase the number of connection. But is there any way to disconnect my connection if we log out of the website. Any other recommendation to use better beego+mariadb ?

  • 写回答

1条回答 默认 最新

  • dongxia2030 2019-05-16 05:29
    关注
    • Decrease wait_timeout.
    • Decrease the number of clients (Apache, for example, defaults to too big a number)
    • Check on the "persistent connection" and "connection pooling" you may be using.
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料