I run a fairly busy Samba server that hosts media files for a website. I am running into an issue where my logs are reporting 'Too many open files'
Below is a line that repeats frequently in daemon.log:
I have looked through this forum and elsewhere online and found a number of things to look at, and it appears like I should not be having this issue.
Output of the above does include many entries about too many open files such as:
The above lists not just smbd, but other processes.
I am not running any jails.
From what I can tell, the login class for the process is default, so I added this to login.conf and ran
We recently updated from 13.5 to 14.3 but this was happening prior to this update.
Any guidance would be appreciated! From what I can tell, I should have plenty of 'space' for open files, but clearly I am missing something. I will be happy to supply configs or other information necessary.
Below is a line that repeats frequently in daemon.log:
Sep 18 xx:xx:xx xxxxxx smbd[xxxx]: [2025/09/18 xx:xx:xx.xxxxxxx, 0] ../../lib/util/debug.c:1274(reopen_one_log)
Sep 18 xx:xx:xx xxxxxx smbd[xxxx]: reopen_one_log: Unable to open new log file '/var/log/samba4/log.smbd': Too many open files
I have looked through this forum and elsewhere online and found a number of things to look at, and it appears like I should not be having this issue.
sysctl -a | grep files
kern.maxfiles: 100000000
kern.maxfilesperproc: 1000000
kern.openfiles: 85175
Output of the above does include many entries about too many open files such as:
kern.maxfiles limit exceeded by uid xxxxx, (smbd) please see tuning(7)
The above lists not just smbd, but other processes.
[xxxx@xxxxxxx /etc]# ulimit -n
1000000
I am not running any jails.
From what I can tell, the login class for the process is default, so I added this to login.conf and ran
cap_mkdb
but that did not stop the messages
:openfiles=unlimited:\
We recently updated from 13.5 to 14.3 but this was happening prior to this update.
Any guidance would be appreciated! From what I can tell, I should have plenty of 'space' for open files, but clearly I am missing something. I will be happy to supply configs or other information necessary.