Mysql show processlist lists many processes sleep and info = null?

前端 未结 2 1276
广开言路
广开言路 2020-12-16 17:24

I\'m injecting a stress test into my web app that connects to a mysql server and I\'m monitoring the show processlist of mysql.

When the load is high (high swap i/o)

2条回答
  •  时光取名叫无心
    2020-12-16 17:44

    Those are idle connections being held by a client. You should make sure that whatever client library you are using (JDBC, ...) is configured to not keep unused connections open so long, or that your # clients * max # of connections isn't too big.

提交回复
热议问题