Too many linuxTIME_WAIT solutions

Source: Internet
Author: User
LinuxTIME_WAIT excessive solution view TCP status: netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; check the SOCKET status: cat/proc/net/sockstatwww.2cto. comTIME_WAIT-like... linux TIME_WAIT excessive solution view TCP status: netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print, S [a]} 'check the SOCKET status: cat/proc/net/sockstat www.2cto.com TIME_WAIT. Generally, the socket will be recycled after 2msl. Modify (add) the system kernel parameter:/etc/sysctl. conf # change system? The default timeout time is net. ipv4.tcp _ fin_timeout = 2 # Restart. the default TIME-WAIT sockets value is 0? Indicates closing net. ipv4.tcp _ tw_reuse = 1 # enable fast recovery of TIME-WAIT sockets in TCP connection. the default value is 0, indicating that net is disabled. ipv4.tcp _ tw_recycle = 1 make the new parameter take effect: sysctl-p

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.