One > Modify handle number
Ulimit–a
1 "Modify the file: /etc/security/limits.conf - Span style= "color: #000000; font-size:14px;" > current session run Span style= "font-family:arial, ' Sans-serif '; color: #000000; font-size:14px;" >ulimit-a command cannot be displayed)
1. * Soft Nofile 32768 #limit the maximum number of file handles for a single process (System alert when this limit is reached)
2. * Hard Nofile 65536 #limit the maximum number of file handles for a single process (system error when this limit is reached)
* soft nofile 32768
* Hard Nofile 65536
2 ) Modify the file: /etc/sysctl.conf . Add at the end of the file:
Fs.file-max=655350
Run command:/sbin/sysctl-p make configuration effective
3> Temporary Modification
#step6: Set open file buffer with Root
ULIMIT-HSN 65534
#sudo echo "Ulimit-n 65535"
B > Modify TCP/UDP Cache
#step1: Stop iptables with Root
Service Iptables Stop
#step2: Set LIUNX system max TCP/UDP buffer
Sysctl-w net.core.rmem_max=67108864
Sysctl-w net.core.wmem_max=67108864
#step3set UDP Buffer
Sysctl-w net.core.rmem_default=33554432
Sysctl-w net.core.wmem_default=33554432
#step4: Set TCP buffer
Sysctl-w net.ipv4.tcp_rmem= "4096 33554432 33554432"
Sysctl-w net.ipv4.tcp_wmem= "98304 33554432 33554432"
Sysctl-w net.ipv4.tcp_mem= "98304 33554432 33554432"
#step5: Set TCP window scalling
Sysctl-w net.ipv4.tcp_window_scaling=1
#sysctl-W net.ipv4.ip_local_port_range= "1024 65000"
This article from the "Test Road" blog, reproduced please contact the author!
Improved configuration of Linux low-latency high-throughput performance