389 Directory Server is an enterprise-class open source LDAP server for Linux and it’s based on Fedora Directory Server. I will share with you on how to perform system tuning analysis for 389 Directory Server on linux CentOS 5.8 server. This post assumed that your CentOS server has been completely installed 389 Directory Server using EPEL repository. It is better to adjust some of the performance and security settings before we start to install 389 directory server. Follow this steps to tuning the 389 Directory Server on CentOS 5.8.
1. Perform TCP Tuning :
a) Decrease the time default value for tcp_keepalive_time connection. Edit the /etc/sysctl.conf file and add the following lines to the bottom of sysctl.conf.
[root@centos58 ~]# echo "net.ipv4.tcp_keepalive_time = 300" >> /etc/sysctl.conf
b) Increase number of local system ports available by editing this parameter in the /etc/sysctl.conf file :
[root@centos58 ~]# echo "net.ipv4.ip_local_port_range = 1024 65000" >> /etc/sysctl.conf
2. Perform File Tuning :
a) Increase the file descriptors by running these commands :
[root@centos58 ~]# echo "64000" > /proc/sys/fs/file-max
Simply run this command :
[root@centos58 ~]# echo "fs.file-max = 64000" >> /etc/sysctl.conf
b) Edit /etc/profile as below :
[root@centos58 ~]# echo "ulimit -n 8192" >> /etc/profile
c) Edit the file descriptors in /etc/security/limits.conf. Add two parameter at the bottom of the configuration file :
[root@centos58 ~]# echo "* soft nofile 524288" >> /etc/security/limits.conf [root@centos58 ~]# echo "* hard nofile 524288" >> /etc/security/limits.conf
3. Directory Server Tuning :
[root@centos58 ~]# ulimit -n 8192
4. Sufficient Memory Assigned :
Make sure you have assign or upgrade the physical memory to at least 1024MB.