在 CentOS(或一般 Linux)系统中,“dropped” 通常出现在网络、系统资源、日志或数据包层面。下面我按常见场景给你一套通用排查思路,你可以对照是哪一种“dropped”。
ip -s link
# 或
ifconfig
关注:
RX droppedTX dropped可能原因:
netstat -s | grep -i drop
或
nstat -az | grep -i drop
ethtool -S eth0 | grep -i drop
(替换 eth0 为你的网卡)
cat /proc/sys/net/netfilter/nf_conntrack_count
cat /proc/sys/net/netfilter/nf_conntrack_max
dmesg | grep conntrack
iptables -nvL
看 DROP 计数是否增长
firewall-cmd --list-all
journalctl -u firewalld
cat /proc/sys/fs/file-nr
ulimit -n
ss -s
关注 TW / alloc / mem
dmesg | grep -i drop
journalctl -p err | grep -i drop
如 Nginx / Java / MySQL:
tail -f /var/log/nginx/error.log
top
# 看 si 是否高
cat /proc/softirqs
cat /proc/interrupts
tcpdump -i eth0 -nn port 80
比如:
ip -s link 里 RX dropped 很多”我可以直接给你针对性排查命令和解决方案。