Reference Source: http://kerry.blog.51cto.com/172631/105233/
Brief description 1
The close function was not called after MySQL connection was used.
Parameter Tuning Reference:
Tuning Kernel Parameters
Vi/etc/sysctl.conf
Edit the file and add the following:
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
Then execute the /sbin/sysctl -p
parameters to take effect.
net.ipv4.tcp_syncookies = 1 means that SYN Cookies are turned on. When there is a SYN wait queue overflow, cookies are enabled to protect against a small number of SYN attacks, the default is 0, which means close;
Net.ipv4.tcp_tw_reuse = 1 means turn on reuse. Allows time-wait sockets to be re-used for new TCP connections, which defaults to 0, which means shutdown;
net.ipv4.tcp_tw_recycle = 1 means a fast recycle of time-wait sockets in the TCP connection is turned on, and the default is 0, which means shutdown.
net.ipv4.tcp_fin_timeout Modify the default timeout time for the system
Server has a large number of time_wait analysis reference