目前尝试过netty和mqtt的长连接
压测程序
略
服务器配置
单(压力)机多IP实现超过65535个TCP连接
vim /etc/sysconfig/network-scripts/ifcfg-eth0
IPADDR1=192.168.106.200
NETMASK1=255.255.255.0
IPADDR2=192.168.106.201
NETMASK2=255.255.255.0
IPADDR3=192.168.106.202
NETMASK3=255.255.255.0
IPADDR4=192.168.106.203
NETMASK4=255.255.255.0
IPADDR5=192.168.106.204
NETMASK5=255.255.255.0
IPADDR6=192.168.106.205
NETMASK6=255.255.255.0
IPADDR7=192.168.106.206
NETMASK7=255.255.255.0
IPADDR8=192.168.106.207
NETMASK8=255.255.255.0
IPADDR9=192.168.106.208
NETMASK9=255.255.255.0
IPADDR10=192.168.106.209
NETMASK10=255.255.255.0
systemctl restart network
ip add
ip route
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.145
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.200
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.201
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.202
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.203
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.204
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.205
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.206
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.207
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.208
ip route change to 192.168.106.0/24 dev eth0 src 192.168.106.209