erlang调优方法

1. 来自Scaling Erlang的方法

内核调优:

# Increase the ipv4 port range: 
sysctl -w net.ipv4.ip_local_port_range="1024 65535" 
# General gigabit tuning: 
sysctl -w net.core.rmem_max=16777216 
sysctl -w net.core.wmem_max=16777216 
sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216" 
sysctl -w net.ipv4.tcp_wmem="4096 65536 16777216" 
sysctl -w net.ipv4.tcp_syncookies=1 
# This gives the kernel more memory for tcp which you need with many (100k+) open socket connections 
sysctl -w net.ipv4.tcp_mem="50576 64768 98152" sysctl -w net.core.netdev_max_backlog=2500 
# This set the tcp max connections 
sysctl -w net.netfilter.nf_conntrack_max=1233000

设置打开文件的上限

ulimit -n 999999

erl命令行参数

Erl presents a long list of command line options, we usually need to use just a few of them (+P to have a higher number of processes, +K to enable kernell poll, -smp to enable SMP support)

2016-03-07:

tsung文档中 P73

Increase the maximum number of open files and customize TCP settings in /etc/sysctl.conf. For example:

net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
fs.file-max = 65000

待续

转载于:https://my.oschina.net/u/191928/blog/618643

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值