Mysql – Should I worry for this number of Aborted clients & connects

MySQL

I am getting below number of Aborted clients & connects

mysqladmin ext | grep Abort

Which results as:

| Aborted_clients                               | 719          |
| Aborted_connects                              | 4458         |

One thing to note is, I am getting frequent "MySQL Server has gone away" error.
Not sure if above number of Aborted-** can cause the

MySQL Server has gone away

Best Answer

Those are counters; they are useless without dividing by Uptime or Connections. I would say something is wrong if

Aborted_clients / Uptime > 0.3 / second
Aborted_connects / Uptime > 1 / second
Aborted_clients / Connections > 30%
Aborted_connects / Connections > 8%

If you exceed any of these guidelines, look into

  • making sure that your clients do disconnect, and/or
  • increasing max_connections (but not too much), and/or
  • increasing wait_timeout

"gone away" comes from network glitches and/or trying to hang onto a connection "too long". See the various %wait_timeout settings.

Related Question