V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xoxo419
V2EX  ›  问与答

如何解决 mysql 1040 连接数太多?

  •  
  •   xoxo419 · Aug 25, 2020 · 910 views
    This topic created in 2082 days ago, the information mentioned may be changed or developed.

    mysql 1040 too many connections

    通过搜索基本答案都是 set GLOBAL max_connections=256; 通过修改配置调整连接数.

    但是如果 1000 、一万都还是可以处理,如果 10 万、100 万呢

    方案 1 、MySQL 集群(可以通过集群来提高连接数吗) 方案 2 、通过中间件消化

    2 replies    2020-08-26 09:05:27 +08:00
    imherer
        1
    imherer  
       Aug 25, 2020
    是不是有连接用完没释放啊
    wakzz
        2
    wakzz  
       Aug 26, 2020
    连接池泄漏了吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1574 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:43 · PVG 00:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.