Analysis of linux tcp tuning parameters

Source: Internet
Author: User

Linux tcp tuning parameters analysis Java code any TCP/IP tuning parameters are located in the/proc/sys/net/directory/etc/rc. local Document, and then save the document, when the system restarts, the following TCP/IP Parameter echo "1024 65535">/proc/sys/net/ipv4/ip_local_port_range is automatically modified to connect to the available port range echo 1>/proc /sys/net/ipv4/tcp_tw_reuse time_wait connection reuse echo 1>/proc/sys/net/ipv4/tcp_tw_recycle fast recovery time_wait connection echo 180000>/proc/sys/net/ipv4/ maximum time_wait connection length of tcp_max_tw_buckets echo 20000>/proc/sys/net/ipv4/tcp_max_syn_backlog the maximum number of connections waiting for the client to return no response (in three handshakes) echo 10000>/proc/sys/net/core/somaxconn the length (before the establisthed status) of each listener queue on the listener (Listen) Port) echo 10000>/proc/sys/net/core/netdev_max_backlog maximum number of packets waiting for cpu processing echo 2000000>/proc/sys/fs/file-max maximum number of opened styles echo 3 >/proc/sys/net/ipv4/tcp_fin_timeout FIN-WAIT-2 status: use/etc/sysctl. when the system starts, conf configures the parameter to the value you configured: net. core. rmem_default = 256960. net. core. rmem_max = 256960. net. core. wmem_default = 256960. net. core. wmem_max = 256960. net. ipv4.tcp _ timestamps = 0 net. ipv4.tcp _ sack = 1 net. ipv4.tcp _ window_scaling = 1 any TCP/IP optimization parameters are located in the/proc/sys/net/directory/etc/rc. local Document, and then save the document, when the system restarts, the following TCP/IP Parameter echo "1024 65535">/proc/sys/net/ipv4/ip_local_port_range is automatically modified to connect to the available port range echo 1>/proc /sys/net/ipv4/tcp_tw_reuse time_wait connection reuse echo 1>/proc/sys/net/ipv4/tcp_tw_recycle fast recovery time_wait connection echo 180000>/proc/sys/net/ipv4/ maximum time_wait connection length of tcp_max_tw_buckets echo 20000>/proc/sys/net/ipv4/tcp_max_syn_backlog the maximum number of connections waiting for the client to return no response (in three handshakes) echo 10000>/proc/sys/net/core/somaxconn the length (before the establisthed status) of each listener queue on the listener (Listen) Port) echo 10000>/proc/sys/net/core/netdev_max_backlog maximum number of packets waiting for cpu processing echo 2000000>/proc/sys/fs/file-max maximum number of opened styles echo 3 >/proc/sys/net/ipv4/tcp_fin_timeout FIN-WAIT-2 status: use/etc/sysctl. when the system starts, conf configures the parameter to the value you configured: net. core. rmem_default = 256960. net. core. rmem_max = 256960. net. core. wmem_default = 256960. net. core. wmem_max = 256960. net. ipv4.tcp _ timestamps = 0 net. ipv4.tcp _ sack = 1 net. ipv4.tcp _ window_scaling = 1

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.