How can I resolve a "too many files open" error?
Last Updated: | Applicable Tasktop Versions: 21.1 and later
;
Skip to main content
Last Updated: | Applicable Tasktop Versions: 21.1 and later
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:
Edit the etc/security/limits.conf and add these lines:
* hard nofile 16384 * soft nofile 16384
If using Ubuntu, add this line as well:
session required pam_limits.so
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)
Edit the service setting:
# systemctl edit <service name>.service
Add the limits to the service file:
[Service] LimitNOFILE=16384 LimitNOFILESoft=16384
After making changes, update the service and restart Hub:
# systemctl daemon-reload # systemctl restart <service name>.service
To make sure that the setting is applied, get the service PID and check the max setting:
To get the PID:
# systemctl status <service name>.service
To check the max setting:
# cat /proc/<PID>/limits | grep "Max open files”

