Increasing the number of open files on a Sametime server running on Linux

If your IBM® Sametime® server is hosted on Linux™, increase the number of concurrent open files on the server to prevent performance problems.

About this task

Java™ opens many files and Sametime uses a lot of file descriptors. When a high number of concurrent users (for example, 1,000 or more) connect to the Sametime Community Server, the server may run out of file descriptors.

Procedure

  1. Follow the procedure that matches the way you start the Sametime server, either as a system service or as a regular process.
    • If you start the server as a system service
      1. Use a text editor and open the /etc/initscript file and add the following lines to the file:
        ulimit -Hn 65535
        ulimit -Sn 65535
        Important: Exercise caution while editing the /etc/initscript file. If you do not do this properly, your system may fail to boot properly. Consult your system documentation for more details.
      2. If no file of this name exists on your system, create a file with that name and add the following lines to the file:
        ulimit -Hn 65535
        ulimit -Sn 65535
        eval exec "$4"
      3. Save the file.
    • If you start the server as a regular process
      1. Use a text editor and open the /etc/security/limits.conf file.
      2. Increase the upper limit on the number of file descriptors by adding the following lines to the file:
        * soft    nofile          65535
        * hard    nofile          65535
      3. Save the file.
  2. Restart the Linux server for the operating system change to take effect for all processes.