性能测试 - 一次百万并发配置记录
Max.Bai
2019-02
直接上当时写的记录文档
Performance environment building
CentOS 7 Config:
0. kernel version >2.6.25
cat /proc/version
1. python env config
1.1 python 2.7 install
1.2 locust install
1.3 Crypto install pip install pycrypto
1.4 requests install
1.5 locust port 8089, 5557,5558 iptables open
2. Java 1.8 env config
3. Jmeter install
3.1 tcp socket relate jar
3.2 Jmeter relate jar
AES encode java file
fastjson jar
3.3 Jmeter relate plugin
3.4 http request jar
3.5 Jmeter config
local ip config
tcp.charset
4. nMon install
4.1 nMon script
5. multi ip address config
5.1 multi ips add
ip addr add 200.200.200.243/24 brd 200.200.200.255 dev eth0
6. CentOS kernel config for performance test
6.1 sysctl config
vi /etc/sysctl.conf
net.core.somaxconn = 30000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 16777216
net.core.wme