Common configuration of High-concurrency Linux Server fs. file-max = 999999 # maximum number of handles that a process can open at the same time. net. ipv4.tcp _ tw_reuse = 1 # reuse socketnet in TIME_WAIT status. ipv4.tcp _ keepalive_time = 600 # The frequency of keepalive messages sent by TCP when keepalive is enabled. net. ipv4.tcp _ fin_timeout = 30 # maximum time for the socket to remain in the FIN_WAIT_2 state. net. ipv4.tcp _ max_tw_buckets = 5000 # maximum number of TIME_WAIT socket allowed by the operating system. net. ipv4.ip _ local_port _ tange = 1024 61000 # defines the value range of local ports in UDP and TCP connections. net. ipv4.tcp _ rmem = 4096 32768 262142 # minimum value, default value, and maximum value of TCP receiving cache. net. ipv4.tcp _ wmem = 4096 32768 262142 # minimum value, default value, and maximum value of TCP sending cache. net. core. netdev_max_backlog = 8096 # When the speed at which the network adapter receives data packets exceeds the processing speed of the kernel, the maximum value of the storage queue is net. core. rmem_default = 262144 # default size of the kernel socket receiving cache. net. core. wmem_default = 212144 # default size of the kernel socket sending cache. net. core. rmem_max = 2097152 # maximum size of the kernel socket receiving cache. net. core. wmem_max = 2097152 # maximum size of the kernel socket sending cache. net. ipv4.tcp _ syncookies = 1 # prevent tcp syn attacks. net. ipv4.tcp _ max_syn.backlog = 1024 # Maximum length of the SYN Request queue received during TCP three-way handshake establishment. The default value is 1024.