Minimum Limits on File Descriptors, Processes, and Memory

In order for the Spectrum™ Technology Platform server to run, you must increase the allowed limits on file descriptors, processes, and other entities from their default limits. You must have root access to make these changes.

Note: The settings listed here are the minimum limits required by Spectrum™ Technology Platform. You may set higher limits if it is appropriate for your environment.

AIX (All Supported Versions)

In the file /etc/security/limits, change this setting for the default user, or for a specific user if nofiles is specified for specific users.

nofiles = 131072

CentOS 5

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

CentOS 6

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/90-nproc.conf, comment out the nproc setting for non-root users.

CentOS 7

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/20-nproc.conf, comment out the nproc setting for non-root users.

HP-UX (All Supported Versions)

Set the maximum number of file descriptors by running these commands:

kctune maxfiles_lim=131072

kctune maxfiles=65536

In order for the maxfiles setting to take effect you must reboot the server.

Oracle Linux 6

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/90-nproc.conf, comment out the nproc setting for non-root users.

Oracle Linux 7

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/20-nproc.conf, comment out the nproc setting for non-root users.

Red Hat Enterprise Linux 5

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

Red Hat Enterprise Linux 6

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/90-nproc.conf, comment out the nproc setting for non-root users.

Red Hat Enterprise Linux 7.1

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl

  • In the file /etc/security/limits.d/20-nproc.conf, comment out the nproc setting for non-root users.

Solaris (All Supported Versions)

Set the maximum number of file descriptors for the user running Spectrum™ Technology Platform. Here is an example of how to set this limit at the project level:

projmod -s -K "process.max-file-descriptor=(basic,131072,deny),(privileged,262144,deny)" default

You can also set the limit at the group or user level, if appropriate for your environment.

SUSE Enterprise Linux Server (All Supported Versions)

Set these settings in /etc/security/limits.conf:

*               soft    nofile          65536
*               hard    nofile          131072
*               soft    nproc           4096
*               hard    nproc           65536
*               soft    as              unlimited
*               hard    as              unlimited

Set this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:

vm.max_map_count = 262144

If you use sysctl.conf, run this command:

sysctl -p.

If you use sysctl.d, run this command:

systemctl restart systemd-sysctl

Ubuntu (All Supported Versions)

  • Specify these settings in /etc/security/limits.conf:
    *               soft    nofile          65536
    *               hard    nofile          131072
    *               soft    nproc           4096
    *               hard    nproc           65536
  • Specify this setting in /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf, depending on which file you use on your system:
    vm.max_map_count = 262144

    After specifying these settings, apply them by running one of these commands:

    • If you use sysctl.conf, run this command:

      sysctl -p.

    • If you use sysctl.d, run this command:

      systemctl restart systemd-sysctl