MySQL server discovers a number of time_wait solutions

Source: Internet
Author: User

netstat time_wait | WC




By adjusting the kernel parameters to resolve,

vi /etc/sysctl. conf






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. Allow time -wait sockets to be re-used for new TCP connections, which defaults to 0, which means close;


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

After modification, use

0 0 0


Finally careful inspection found that the day before yesterday a new system, the program code is not used Mysql.colse (), resulting in a large number of MySQL time_wait

This article is from the "Broken Saber" blog, please be sure to keep this source http://90sec.blog.51cto.com/7404127/1703338

MySQL server discovers a number of time_wait solutions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.