I have an application server (berth 6 in the Linux box), which hosts 15 private applications (individual war). Every 3 or 4 days I get a warning from nagios regarding the number of open TCP connections. After checking, I see that the vast majority of these connections are connected to the MySQL server.
netstat -ntu | grep TIME_WAIT
Shows 10,000+ connections to the MySQL server from the application server (note that this is TIME_WAIT). If I restart the pier, the connections will drop to almost zero.
Some interesting values ββfrom the show state:
mysql> show status;
+--------------------------+-----------+
| Variable_name | Value |
+--------------------------+-----------+
| Aborted_clients | 244 |
| Aborted_connects | 695853860 |
| Connections | 697203154 |
| Max_used_connections | 77 |
+--------------------------+-----------+
A "show processlist" does not show anything unusual (which I would expect, since most connections are idle - remember the TIME_WAIT state above).
TEST env , . , , , . , , , /.
, , ?