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