当前位置: 首页 > linux > 正文

nfsd: too many open connections

[摘要] 发现nfs线程数不够了,提示要增加一些数量的threads,syslog中有很多如下日志:
[2566628.826692] nfsd: too many open connections, consider increasing the number of threads.

现有的nfsd状态:

原来nfs默认启动了8个thread,应该是不够了,可以手动修改增加一些。

Debian下修改nfs的默认线程数:
# cat /etc/default/nfs-kernel-server
# Number of servers to start up
# RPCNFSDCOUNT=8
RPCNFSDCOUNT=32

重启nfs
/etc/init.d/nfs-kernel-server restart

如果操作系统是CentOS6.x以上,修改nfs的默认线程数方式如下:
vim /etc/sysconfig/nfs
# Number of nfs server processes to be started.
# The default is 8.
#RPCNFSDCOUNT=8
#RPCNFSDCOUNT=32

再看看目前nfs的状况:

重启后在syslog日志中在没有发现任何 nfsd: too many open connections 的日志了。

本文固定链接: https://www.sudops.com/nfsd-many-open-connections.html | 运维·速度

该日志由 Fisher 于2014年12月20日发表在 linux 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: nfsd: too many open connections | 运维·速度
关键字:

nfsd: too many open connections:等您坐沙发呢!

发表评论


Time limit is exhausted. Please reload the CAPTCHA.

快捷键:Ctrl+Enter