//排查fd 泄露步骤
1)查询进程使用的fd个数
[root@localhost channel89]# lsof -c delay_live_2 | wc -l
1035
or
lsof -p pid |wc -l
1035
2)查询系统最大支持的fd个数
[root@localhost channel89]# cat /proc/sys/fs/file-max
188522
3)记录系统中fd的使用情况,已分配文件句柄的数目
[root@localhost channel89]# cat /proc/sys/fs/file-nr
2816 0 188522
4)查询单个进程允许的最大fd数目
[root@localhost channel89]# ulimit -n
1024
5)修改fd限制可以先修改shell的ulimit -n,