Issue - Linux file limits
FeatureBase Community may exceed open file limits because:
- the database may be split into a large number of files
- these files may be open simultaneously.
Possible cause
Maximum file limits may be set incorrectly:
- in
featurebase.conf
- for the current session
- for persistent sessions
FeatureBase recommends a minimum of 256K for open file limits on Linux systems.
Solutions
Alter the FeatureBase max-file-count limit
Alter ulimit
for current session
ulimit
affects only the current shell and its child processes. You may need to launch a new shell asroot
to raise theulimit
to an appropriate value.
- Open a CLI then run this command with an appropriate value:
ulimit -n <value>
- Verify the change:
ulimit -n
Set a persistent open file limit value
There are four ways to change the open file limit so it persists after reboot.
- Open a CLI then edit one or all the following files:
Edit | Parameter to set |
---|---|
/etc/security/limits.conf | nofile |
/etc/security/limits.d/<username>.conf | nofile |
/etc/susctl.conf | fs.file-max and/or vm.max_map_count |
/etc/sysctl.d/*.conf | fs.file-max |
- Restart your session for the change to take effect.
Further information
- Learn about limits.conf
- Learn how to troubleshoot Linux “too many open files” error
- Learn how to use
ulimit
to change the open file limit - Learn how to use
prlimit
to change the open file limit