top、vmstat 1 10、iostat -x 1 5 查看资源瓶颈。ping 与 mtr -rwz 目标IP 定位跳点丢包与高延迟。tcpdump -i eth0 -w capture.pcap port 3074(示例端口),查看UDP/TCP重传与RST。ss -s、netstat -s 与 NIC 统计 ethtool -S eth0。
| 项 | 配置/观测值 |
|---|---|
| 机房/区域 | AMS(阿姆斯特丹)/ FRA(法兰克福) |
| 主机规格 | 8 vCPU / 16 GB RAM / NVMe 200 GB |
| 带宽 | 1 Gbps 公网端口,峰值流量 350 Mbps |
| 延迟(平均) | AMS->玩家平均 28 ms,问题前 120 ms |
| 丢包率 | 问题前 12% → 优化后 0.5% |
net.core.rmem_max=26214400 与 net.core.wmem_max=26214400。ethtool -K eth0 tx off rx off 作为排查步骤)。net.core.somaxconn=1024、net.ipv4.udp_rmem_min 等。