;

Skip to main content

 

  • arrow icon

 

Planview Customer Success Center

How can I resolve a "too many files open" error?

Last Updated:   |  Applicable Tasktop Versions: 21.1 and later

Answer

You may see a "too many open files" error when starting Planview Hub in a Linux environment. This occurs because the Hub process has opened too many files and cannot open new ones. In Linux, the maximum open file limits are set by default for each process and the values are usually small so you'll likely need to increase the maximum open file limit to resolve this error. 

Note: We recommend increasing the maximum open file limit to 16384.

Before increasing the maximum open file limit, you should verify the current limit (default is typically 1024).

To do this, run the following command:

ulimit -n

To increase the maximum open file limit, see the steps below.

If starting Hub with the tasktop-start.sh script:

  1. Edit the etc/security/limits.conf and add these lines: 

    * hard nofile 16384
    * soft nofile 16384
  2. If using Ubuntu, add this line as well: 

    session required pam_limits.so
  3. After making changes, reload the terminal and check the max open files value by running the following command:

    # ulimit -n

If starting Hub with the systemctl service (Systemd)

  1. Edit the service setting: 

    # systemctl edit <service name>.service
  2. Add the limits to the service file: 

    [Service]
    LimitNOFILE=16384
    LimitNOFILESoft=16384
  3. After making changes, update the service and restart Hub: 

    # systemctl daemon-reload
    # systemctl restart <service name>.service
  4. To make sure that the setting is applied, get the service PID and check the max setting:

    1. To get the PID:

      # systemctl status <service name>.service
    2. To check the max setting: 

      # cat /proc/<PID>/limits | grep "Max open files”