{"id":2429,"date":"2012-05-11T20:09:34","date_gmt":"2012-05-11T12:09:34","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2429"},"modified":"2023-04-28T09:49:20","modified_gmt":"2023-04-28T09:49:20","slug":"how-to-tuning-389-directory-server-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-tuning-389-directory-server-on-centos-6-2\/","title":{"rendered":"How to Tuning 389 Directory Server on CentOS 6.2"},"content":{"rendered":"<p>This post will share with you on how to perform system tuning analysis for 389 Directory Server on linux CentOS 6.2 server. 389 Directory Server is an enterprise-class open source LDAP server for Linux. It is based on Fedora Directory Server. This post assumed that your CentOS server has been completely installed  389 Directory Server using EPEL repository. Before start to configure the 389 Directory Server, it is better to adjust some performance and security settings. Follow the following steps to tuning the 389 Directory Server on CentOS 6.2.<\/p>\n<p><strong>1. Perform TCP Tuning :<\/strong><\/p>\n<p>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.<\/p>\n<pre>\n[root@centos62 ~]# vi \/etc\/sysctl.conf\n<\/pre>\n<pre>\n#Decrease the time default value for tcp_keepalive_time connection\nnet.ipv4.tcp_keepalive_time = 300\n<\/pre>\n<p>b) Increase number of local system ports available by editing this parameter in the \/etc\/sysctl.conf file :<\/p>\n<pre>\n[root@centos62 ~]# echo \"net.ipv4.ip_local_port_range = 1024 65000\" >> \/etc\/sysctl.conf\n<\/pre>\n<p>Show changes :<\/p>\n<pre>\n[root@centos62 ~]# cat \/etc\/sysctl.conf | grep net.ipv4.ip_local_port_range\nnet.ipv4.ip_local_port_range = 1024 65000\n<\/pre>\n<p><strong>2. Perform File Tuning :<\/strong><\/p>\n<p>a) Increase the file descriptors by running these commands: <\/p>\n<pre>\n[root@centos62 ~]# echo \"64000\" > \/proc\/sys\/fs\/file-max\n<\/pre>\n<p>Show changes :<\/p>\n<pre>\n[root@centos62 ~]# cat \/proc\/sys\/fs\/file-max\n64000\n<\/pre>\n<p>or<br \/>\nSimply run this command :<\/p>\n<pre>\n[root@centos62 ~]# echo \"fs.file-max = 64000\" >> \/etc\/sysctl.conf\n<\/pre>\n<p>Show changes :<\/p>\n<pre>\n[root@centos62 ~]# cat \/etc\/sysctl.conf | grep fs.file-max\nfs.file-max = 64000\n<\/pre>\n<p>b) Edit \/etc\/profile as below :<\/p>\n<pre>\n[root@centos62 ~]# echo \"ulimit -n 8192\" >> \/etc\/profile\n<\/pre>\n<p>Show changes :<\/p>\n<pre>\n[root@centos62 ~]# cat \/etc\/profile | grep ulimit\nulimit -n 8192\n<\/pre>\n<p>c) Edit the file descriptors in \/etc\/security\/limits.conf. Add two parameter at the bottom of the configuration file :<\/p>\n<pre>\n[root@centos62 ~]# vi \/etc\/security\/limits.conf\n<\/pre>\n<pre>\n# End of file\n* soft nofile 524288\n* hard nofile 524288\n<\/pre>\n<p><strong>3. Directory Server Tuning :<\/strong><\/p>\n<p>a) Edit \/etc\/sysconfig\/dirsrv and uncomment &#8220;ulimit -n 8192&#8221;<\/p>\n<pre>\n[root@centos62 ~]# cat \/etc\/sysconfig\/dirsrv | grep ulimit\n<\/pre>\n<pre>\n# hard limits are raised, then use ulimit - uncomment\n# ulimit -n 8192\n<\/pre>\n<p>Edit as below :<\/p>\n<pre>\n[root@centos62 ~]# vi \/etc\/sysconfig\/dirsrv\n<\/pre>\n<pre>\n# In order to make more file descriptors available\n# to the directory server, first make sure the system\n# hard limits are raised, then use ulimit - uncomment\n# out the following line and change the value to the\n# desired value\nulimit -n 8192\n<\/pre>\n<p><strong>4. Sufficient Memory Assigned :<\/strong><\/p>\n<p>Make sure you have assign or upgrade the physical memory to at least 1024MB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will share with you on how to perform system tuning analysis for 389 Directory Server on linux CentOS 6.2 server. 389 Directory Server is an enterprise-class open source&#8230;<\/p>\n","protected":false},"author":6,"featured_media":717,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1102,2055],"tags":[1178,1190,1244,1253,1536,1546,1825],"class_list":["post-2429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-389-directory-server","category-centos","tag-389-directory","tag-analysis","tag-centos","tag-centos-6-2","tag-linux","tag-linux-utilities","tag-system-tuning"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2429"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2429\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/717"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}