Dear all, How can I increase the amount of file descriptors available in my solaris 10 (x86), Is there some setting in /etc/system that I can do this ?
I have following entries in my logfiles. So my question is do I recompile bind BIND 9.5.1b1?? , as I red so many emails saying that this version has stable Aug 17 10:38:43 ns1 named[2822]: [ID 873579 daemon.error] socket: too many open file descriptors Aug 17 10:38:48 ns1 last message repeated 356 times Aug 17 10:38:50 ns1 named[2822]: [ID 873579 daemon.error] socket: too many open file descriptors Even i dont know this problem from the bind or O/S, any clue will be great for me. thanks in advance. My Environment is Solaris 10x86 Bind 9.5.0-P2 Regards Ejaz ----- Original Message ----- From: "David Sparks" <[EMAIL PROTECTED]> To: "Bindlist" <[email protected]> Sent: Thursday, August 14, 2008 12:13 AM Subject: Re: 9.5.0-P2 and socket: too many open file descriptors > Apparently 16384 fd isn't sufficient? I restarted named and: > I doubt it ran out of fds ... either I compiled it wrong or there is > something > else going on. To answer my own question I recompiled named with some diagnostics and find out that 1024 is still the FD limit: 13-Aug-2008 14:07:03.480 general: error: too many open file descriptors: 1024 I followed the example and ran configure like this: STD_CDEFINES='-DFD_SETSIZE92' ./configure and found this in the log: config.log:STD_CDEFINES='-DFD_SETSIZE92' What am I doing wrong? Thanks, ds diff -ur bind-9.5.0-P2/lib/isc/unix/socket.c bind-9.5.0-P2.new/lib/isc/unix/socket.c --- bind-9.5.0-P2/lib/isc/unix/socket.c 2008-07-28 21:47:09.000000000 -0700 +++ bind-9.5.0-P2.new/lib/isc/unix/socket.c 2008-08-13 12:44:09.805793341 -0700 @@ -1559,7 +1559,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", "socket"); + "too many open file descriptors: %d", sock->fd); free_socket(&sock); return (ISC_R_NORESOURCES); } @@ -2131,7 +2131,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", + "too many open file descriptors: %d", sock->fd, err); goto soft_error; @@ -2190,7 +2190,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", + "too many open file descriptors: %d", sock->fd, "accept"); (void)close(fd); goto soft_error;
