Maximum number of file handles allowed for Domino is 1024 错误

今天同事报告一个问题:Linux 平台下的 Domino 服务器运行一段时间之后,Notes 客户机无法连接,但 HTTP 服务器却是好的。同时在服务器控制台上出现以下错误:

WARNING: the maximum number of file handles (ulimit -n) allowed for Domino is 1024. See Release Notes and set the allowable maximum to 20000.

经查明其原因是在 Linux 默认设置下,每个进程能够使用的 file handles 为 1024,达到这个限制之后就无法再打开任何文件了。修改此设定分为两种情况:

  • 用户登录系统手工启动 Domino(修改 /etc/security/limits.conf 文件)
  • 通过 /etc/init.d 脚本自动启动(在启动脚本中增加 ulimit -n 20000 命令)

具体方法请参考 IBM 技术支持文档