在 CentOS(及其他 Linux 系统)中,dropped 通常出现在网络、系统资源或日志相关场景中。下面按最常见场景说明如何“诊断 dropped 问题”。
ip -s link
或
ifconfig
重点看:
RX packets ... dropped: xxx
TX packets ... dropped: xxx
ethtool -S eth0 | grep -i drop
常见原因:
netstat -s | grep -i drop
或
ss -s
iptables -L -v -n
看 DROP 计数是否增长。
firewall-cmd --list-all
可临时关闭测试:
systemctl stop firewalld
netstat -s | egrep 'dropped|overflow|listen'
常见指标:
TCPBacklogDropListenOverflowsListenDrops原因:
backlog 太小somaxconn 不足sysctl -a | grep backlog
free -h
dmesg | grep -i oom
ulimit -n
cat /proc/sys/fs/file-max
top
# 看 si 列
mpstat -P ALL 1
journalctl -p err -xb
dmesg | grep -i drop
如 Nginx / MySQL:
worker_connectionstoo many open filesip -s link + netstat -s 初步判断dmesg / journalctltcpdump -i eth0 -nn port 80
请告诉我:
cat /etc/redhat-release)我可以直接帮你定位根因并给优化方案。