This post will share with you on how to increase file descriptor on 389 Directory Server. The steps should be similar either in CentOS or Redhat Enterprise server. 389 Directory Server is an enterprise-class open source LDAP server for Linux. It is based on Fedora Directory Server.
1. Edit the /etc/sysconfig/dirsrv file and add the following line :
ulimit -n 8192
2. Increase nsslapd-maxdescriptors value. Assumed that directory instance was configured as slapd-centos62 :
[[email protected] ~]# vi /etc/dirsrv/slapd-centos62/dse.ldif
Add the following :
3. Restart dirsrv service to apply changes :
[[email protected] ~]# service dirsrv stop Shutting down dirsrv: centos62... [ OK ] [[email protected] ~]# service dirsrv start Starting dirsrv: centos62... [ OK ]