Increasing the maximum number of open file handles

Ops Center Analyzer Detail View REST API Reference Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ANA004-11

If you expect a large number of concurrent requests in the Analyzer detail view server, increase the maximum number of file handles that can be opened by changing the system configuration. Perform the following steps on the VM or individual machine on which the Analyzer detail view server is installed.

  1. Log in to the VM or individual machine on which the Analyzer detail view server is installed.
  2. Open the sysctl.conf file using the command vi /etc/sysctl.conf.
  3. Add the following line at the end of file and set its value to a large number. In the example, the value is set to 65535. Refer to your OS documentation for the maximum allowed value.
    fs.file-max = 65535
  4. Save the file and exit.
  5. Open the limits.conf file using the command vi /etc/security/ limits.conf.
  6. Add the following lines to the limits.conf file:
    * soft nofile 65535
    * hard nofile 65535
  7. Save the file and exit.
  8. Run the ulimit –a command to check the max open file ulimit:
    [root@localhost ~]# ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 63833
    max locked memory       (kbytes, -l) 32
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 65535
    pipe size            (512 bytes, -p) 8
  9. Reboot the VM or individual machine on which the Analyzer detail view server is installed.