When I installed FDS the setup script was pretty specific about the need to ncrease the max number <br>
of open file descriptors.<br>
<br>
This is what I setup:<br>
<br>fs.file-max 64000<br>
in /etc/sysctl.conf<br>
<br>
*       -    nofile  8192<br>
in /etc/security/limits.conf<br>
<br>
and in my init.d script:<br>
ulimit -n 8192 <br>
<br>
<br><div><span class="gmail_quote"> On 7/27/05, <b class="gmail_sendername">Craig Ayliffe</b> <<a href="mailto:cayliffe@gmail.com">cayliffe@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Has anyone come across problem with directory server having too many<br>fds open, which then causes it to not receive any new connections?<br><br>Version: Fedora-Directory/7.1 B2005.146.2010<br>OS: Linux ds01 2.6.11-1.1369_FC4
 #1 Thu Jun 2 22:55:56 EDT 2005 i686<br>i686 i386 GNU/Linux<br><br>>From the logs/error:<br><br>[28/Jul/2005:19:22:42 +1000] - Listening for new connections again<br>[28/Jul/2005:19:22:42 +1000] - Not listening for new connections - too
<br>many fds open<br>[28/Jul/2005:19:22:42 +1000] - Listening for new connections again<br>[28/Jul/2005:19:22:42 +1000] - Not listening for new connections - too<br>many fds open<br>[28/Jul/2005:21:00:22 +1000] - Listening for new connections again
<br><br><br>One thing I have noticed is a lot of tcp connections owned by the<br>ns-slapd process, that are suspended in the CLOSE_WAIT state.<br><br># netstat -nap<br>...<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">
10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54566">10.10.245.12:54566</a>   CLOSE_WAIT  17118/ns-slapd<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54502">
10.10.245.12:54502</a>   CLOSE_WAIT  17118/ns-slapd<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54758">10.10.245.12:54758</a>   CLOSE_WAIT  17118/ns-slapd
<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54569">10.10.245.12:54569</a>   CLOSE_WAIT  17118/ns-slapd<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">
10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54312">10.10.245.12:54312</a>   CLOSE_WAIT  17118/ns-slapd<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54440">
10.10.245.12:54440</a>   CLOSE_WAIT  17118/ns-slapd<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54379">10.10.245.12:54379</a>   CLOSE_WAIT  17118/ns-slapd
<br>tcp        0      0 ::ffff:<a href="http://10.10.246.31:389">10.10.246.31:389</a><br>::ffff:<a href="http://10.10.245.12:54315">10.10.245.12:54315</a>   CLOSE_WAIT  17118/ns-slapd<br><br><br>Regards,<br><br>--<br>Craig Ayliffe
<br><br>--<br>Fedora-directory-users mailing list<br><a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users
</a><br></blockquote></div><br>