On 10/09/2012 06:13 AM, fe...@epepm.cupet.cu wrote:
Happened again with rc2 but found that at the same time this error
shows
every second:

[2012/10/05 09:01:39,  0]
../source4/smbd/process_single.c:56(single_accept_connection)
    single_accept_connection: accept: NT_STATUS_TOO_MANY_OPENED_FILES
root@ad:~# netstat -anp | grep 53|grep samba|wc -l
1003
I think this is the direct cause of the "too many open files" error.

https://bugzilla.samba.org/show_bug.cgi?id=8878

In a nutshell I suspect that our server sends forward requests to
the forwarder that are never answered and the connections piles
up, once we reached the limit (1024 ?) the server didn't accept
any new connections.
Seems likely.
I think it is. Because all the connections I see when the error occurs are
related to the forwarder I declared in smb.conf.
The number of connections keeps growing again until the error appears. So
I have to restart samba.
And, yes, lsof, shows that all connections but 2 are related to the
forwarder.
Can you provide the list of open files still ?
Also bumping the number of openfile (ulimit -n 65000 in the startup script) should be an acceptable workaround.


Matthieu


--
Matthieu Patou
Samba Team
http://samba.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to