# cat /etc/openldap/slapd.conf | grep -v ^# | grep -ve '^$'
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
allow bind_v2
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
modulepath /usr/lib64/openldap
TLSCACertificateFile /etc/openldap/certs/CA.pem
TLSCertificateFile /etc/openldap/certs/ldap-master.pem
TLSCertificateKeyFile /etc/openldap/certs/ldap-master.key
TLSVerifyClient allow
[ .. some limits here .. ]
[ .. some ACLs here .. ]
database config
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
by * none
database monitor
[ .. some ACLs here .. ]
[ .. some limits here .. ]
database bdb
cachesize 380000
idlcachesize 700000
readonly off
suffix "dc=domain,dc=com"
rootdn "cn=Manager,dc=domain,dc=com"
rootpw {SSHA}XXXXXXXXXX
directory /var/lib/ldap
index uid eq
index mail eq
index objectClass eq
index entryCSN eq
index entryUUID eq
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100
[ .. some limits here .. ]
loglevel sync stats stats2 shell
checkpoint 5120 10
serverID 1
---------------------------------------------------------------------------
Here's what I have on replica server:
---------------------------------------------------------------------------
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
allow bind_v2
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
threads 8
[ .. some ACLs here .. ]
database config
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
by * none
database monitor
[ .. some ACLs here .. ]
database bdb
cachesize 380000
idlcachesize 700000
readonly off
suffix "dc=domain,dc=com"
rootdn "cn=Manager,dc=jetbrains,dc=com"
rootpw {SSHA}XXXXXXXXXXXXXXXXX
directory /var/lib/ldap
index uid eq
index mail eq
index objectClass eq
index entryCSN eq
index entryUUID eq
checkpoint 5120 10
syncrepl rid=34
tls_reqcert=demand
tls_cacert=/etc/openldap/certs/CA.pem
type=refreshAndPersist
schemachecking=off
searchbase="dc=domain,dc=com"
scope=sub
bindmethod=simple
binddn="cn=repluser,ou=Accounts,dc=domain,dc=com"
credentials=XXXXXXXXXX
retry="300 +"
[ .. some limits here .. ]
loglevel stats sync stats2 shell
---------------------------------------------------------------------------
I restarted slapd with "LD_PRELOAD=/usr/lib64/libtcmalloc.so.4.1.0" to use a different memory allocator (tcmalloc) and now memory consumption is almost flat, please see
http://i.imgur.com/brIvarB.png
I've also added "threads 8" directive into slapd.conf on LDAP master server but have not started the slapd process to make it active.
According to what I see from the OS (Linux) perspective, slapd is using 18 threads:
# ps -L -o pid= -p `pgrep slapd` | wc -l
18
> Do your logs show what kind of client activity triggered the growth?
I have some logs but I nothing really special there. No unusual activity.
Regards,
Sergey