This commit is contained in:
Feng 2016-02-27 15:22:15 +08:00
parent 6ced604dc4
commit 4e73476dfe
2 changed files with 5 additions and 4 deletions

View File

@ -200,6 +200,7 @@ Linux Kernel Parameters
# 2M: # 2M:
sysctl -w fs.file-max=2097152 sysctl -w fs.file-max=2097152
sysctl -w fs.nr_open=2097152 sysctl -w fs.nr_open=2097152
echo 2097152 > /proc/sys/fs/nr_open
# 1M: # 1M:
ulimit -n 1048576 ulimit -n 1048576

View File

@ -25,7 +25,7 @@ The limit on opened file handles for current session::
/etc/sysctl.conf /etc/sysctl.conf
---------------- ----------------
Add the 'fs.file-max' to /etc/sysctl.conf to make the changes permanent:: Add the 'fs.file-max' to /etc/sysctl.conf, make the changes permanent::
fs.file-max = 1048576 fs.file-max = 1048576
@ -49,7 +49,7 @@ Increase number of incoming connections backlog::
Local Port Range:: Local Port Range::
sysctl -w net.ipv4.ip_local_port_range=2000 65535 sysctl -w net.ipv4.ip_local_port_range=1000 65535
Read/Write Buffer for TCP connections:: Read/Write Buffer for TCP connections::
@ -63,7 +63,7 @@ Read/Write Buffer for TCP connections::
sysctl -w net.ipv4.tcp_rmem='1024 4096 16777216' sysctl -w net.ipv4.tcp_rmem='1024 4096 16777216'
sysctl -w net.ipv4.tcp_wmem='1024 4096 16777216' sysctl -w net.ipv4.tcp_wmem='1024 4096 16777216'
Connection tracking:: Connection Tracking::
sysctl -w net.nf_conntrack_max=1000000 sysctl -w net.nf_conntrack_max=1000000
sysctl -w net.netfilter.nf_conntrack_max=1000000 sysctl -w net.netfilter.nf_conntrack_max=1000000
@ -85,7 +85,7 @@ Erlang VM
Tuning and optimize the Erlang VM in etc/vm.args file:: Tuning and optimize the Erlang VM in etc/vm.args file::
## max process numbers ## max number of erlang processes
+P 2097152 +P 2097152
## Sets the maximum number of simultaneously existing ports for this system ## Sets the maximum number of simultaneously existing ports for this system