Terminating idle mysql connections

前端 未结 2 1917
臣服心动
臣服心动 2020-11-27 16:10

I see a lot of connections are open and remain idle for a long time, say 5 minutes.

Is there any solution to terminate / close it from server without restarting the

2条回答
  •  时光取名叫无心
    2020-11-27 16:31

    I don't see any problem, unless you are not managing them using a connection pool.

    If you use connection pool, these connections are re-used instead of initiating new connections. so basically, leaving open connections and re-use them it is less problematic than re-creating them each time.

提交回复
热议问题