Linux环境 句柄数过多
1、部署相同的服务,本地服务器没有问题,阿里云服务器有问题
2、lsof -p pid 查询句柄数时,多出一些奇怪的东西,一直再增加(本地环境没有,阿里云有),如下
java 6479 root 4084u IPv4 386122755 0t0 TCP localhost:sos->localhost:43836 (CLOSE_WAIT)
java 6479 root 4085u sock 0,7 0t0 386122460 protocol: TCP
java 6479 root 4086u IPv4 386122461 0t0 TCP localhost:sos->localhost:43838 (CLOSE_WAIT)
java 6479 root 4087u sock 0,7 0t0 386122776 protocol: TCP
java 6479 root 4088u sock 0,7 0t0 386122777 protocol: TCP
java 6479 root 4089u sock 0,7 0t0 386122778 protocol: TCP
java 6479 root 4090u sock 0,7 0t0 386122601 protocol: TCP
java 6479 root 4091u sock 0,7 0t0 386165455 protocol: TCP
java 6479 root 4092u IPv4 386165456 0t0 TCP localhost:sos->localhost:45170 (CLOSE_WAIT)
java 6479 root 4093u sock 0,7 0t0 386122602 protocol: TCP
java 6479 root 4094u sock 0,7 0t0 386122603 protocol: TCP
java 6479 root 4095u IPv4 386122845 0t0 TCP localhost:sos->localhost:43844 (CLOSE_WAIT)