Common configurations of High-concurrency Linux servers

Source: Internet
Author: User

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.

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.