今天发现一个问题: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,达到这个限制之后就无法再打开任何文件了

    解决方法如下: 

  1。用户登录系统手工启动 Domino(修改 /etc/security/limits.conf 文件)

  2。通过 /etc/init.d 脚本自动启动(在启动脚本中增加 ulimit -n 20000 命令)

 

    下面是ibm技术支持文档全文:

Question
When you launch a Lotus Domino server that runs on Linux, the following message appears on the Domino server console:

    "WARNING: the maximum number of file handles (ulimit -n) allowed for Domino is 1024. See Release Notes and set the allowable maximum to 20000."
 
Answer
As indicated in the message, this warning occurs because you must increase the maximum file handles before you can run the Domino server. The error is more likely to occur on Linux platforms because Linux is set to 1024 by default. However, you could also encounter this error when Domino runs on Solaris or AIX if you have adjusted the file handles to a lower value.
For Linux platforms, the product Release Notes contain instructions for how to adjust this value. Refer to the following topics in the Lotus Notes/Domino Release Notes:
  • Domino for Linux on x86 configuration
  • Domino for Linux on zSeries configuration

For your convenience, an excerpt from the Release Notes is provide below.

Domino for Linux on x86 configuration

Increasing the per-process filehandle limit
By default, the Linux kernel limits the number of file descriptors that any one process can open; the default is 1024. This limit includes socket file descriptors that are opened during basic client/server communications, therefore is too restrictive for the Domino process. Do not assume that having fewer than 1024 databases (or files) in the Domino data directory is an indicator of the maximum number of open file descriptors that Domino will require. In order to scale above "tens" of client connections, this default must be overridden by the Linux administrator.

The mechanism for overriding the default varies depending on how the Domino server is started. There are 2 basic scenarios:

1. Domino is started from a login session

For this case, the default must be overridden by modifying the file /etc/security/limits.conf AND insuring it is respected by the login. Edit /etc/security/limits.conf using root and add or modify the lines:

domsrvr soft nofile 20000
domsrvr hard nofile 49152

where "domsrvr" is an example of the user id that will run the Domino server. Specify the UNIX user name in the first column that is the owner of the notesdata directory specified during Domino installation. If more than one Domino partition exists on the same Linux for zSeries platform, repeat these lines for each user id. The "soft" value specifies the new default file descriptor limit (ulimit -n), and the "hard" value specifies the maximum file descriptor limit that may be set by the user.

In order for these limits to be respected following logon, insure the following line is in the appropriate pam.d login file:

session     required      /lib/security/pam_limits.so

For example, if ssh login is used, this line must appear in /etc/pam.d/sshd
If telnet is used, this line must appear in /etc/pam.d/login
If rlogin is used, this line must appear in /etc/pam.d/rlogin

The user id must login after the above changes are made and saved.

2. Domino is automatically started through /etc/init.d

Starting a Domino server automatically when Linux is booted is typically accomplished by executing a script which resides in the /etc/init.d directory (in a "runlevel") . It is worth noting, however, that /etc/security/limits.conf settings are NOT respected when Domino is automatically started by a /etc/init.d script. Therefore, a line such as the following MUST appear in the "start" section of such a script:


ulimit -n 20000

Warning: Always make /etc/security/limits.conf change ( 1. above) in addition to modification of the "start" script. Otherwise, on the occasion that Domino is started from a login session, the file descriptor limit will be inadequate.

 

 文档地址
posted on 2010-09-08 15:34  麦特  阅读(2322)  评论(0编辑  收藏  举报