报错信息:
Can’t open file (errno:24)、Error in accept: Too many open file。
解决方案:
1. 查看open files 配置参数
ulimit -a 其中有一项是 open files 代表系统允许的最大打开文件的数量。
2. 通过统计/proc/进程ID/fd查看gbased进程打开的文件句柄
ls -l /proc/`pidof gbased`/fd|wc -l
3.若进程打开文件的数量超过了open files的参数,则需请系统维护人员修改系统的最大文件数配置,建议是655360个。一般来讲排查这几个文件:/etc/security/limits.conf、
/etc/security/limits.d/XXXX.conf、/etc/profile、/home/gbase/.bash_profile、/home/gbase/.bashrc