套字节耗尽
发现本机redis连不上
看临时端口是否耗尽
netstat -ano | find /c "TIME_WAIT"
netstat -ano | find /c "ESTABLISHED"
查看哪些进程各占用多少套节字状态为ESTABLISHED
powershell -Command "$c=@{}; netstat -ano | Select-String 'ESTABLISHED' | ForEach-Object { if ($_ -match '\s+(\d+)\s*$'){ $p=$Matches[1]; if(-not $c[$p]){$c[$p]=0}; $c[$p]++ } }; $c.GetEnumerator() | Sort-Object Value -Descending | Select-Object -First 10 | ForEach-Object { $p=Get-Process -Id $_.Key -ErrorAction SilentlyContinue; '{0,6} pid={1} {2}' -f $_.Value,$_.Key,($(if($p){$p.ProcessName}else{'?'})) }"
查询结果类似:
9 pid=20524 Cursor
6 pid=21672 chrome
4 pid=5684 mysqld
4 pid=10252 Cursor
3 pid=20744 Cursor
1 pid=30644 fusion-win-x64
1 pid=8796 Weixin
1 pid=22772 SystemSettings
1 pid=16116 QQ
1 pid=30136 jcef_helper
浙公网安备 33010602011771号