go-fastdfs
go-fastdfs copied to clipboard
too many open files
多台gofast集群,运行一段时间后,会出现很多无法释放的socket连接.最后超出系统设置句柄数.请问该问题怎么解决?
Sorry if the translation is bad. My message was translated with Google Translate.
What OS are you running go-fastdfs on? Linux has open file limits. It is a safety feature.
Here is an article about it: https://www-howtogeek-com.translate.goog/805629/too-many-open-files-linux/?_x_tr_sl=en&_x_tr_tl=zh-CN&_x_tr_hl=en&_x_tr_pto=wapp
如果翻译不好,请见谅。 我的信息是用谷歌翻译翻译的。
你在什么操作系统上运行 go-fastdfs? Linux 有打开文件的限制。 这是一项安全功能。
这是一篇关于它的文章。
https://www-howtogeek-com.translate.goog/805629/too-many-open-files-linux/?_x_tr_sl=en&_x_tr_tl=zh-CN&_x_tr_hl=en&_x_tr_pto=wapp
一、检查下系统配置 ulimit -n , 这个与进程相关,具本网上查询资料解决 二、检查集群内的机器会不会环 (自己搞自己的情况)config.json peers