[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
newbie question for openldap tuning issue
- To: OpenLDAP-software@OpenLDAP.org
- Subject: newbie question for openldap tuning issue
- From: Ramdas Phutane <ramdas.phutane@gmail.com>
- Date: Wed, 28 Dec 2005 19:59:35 +0530
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qdhuluZkLk88XWsoFN97Eqkn7+xRk8CjTBucpchCzeQlyq/QDy4Dt8iTuRPPB1oRoelDAx1v6jX3p983Hzcjy1SY/0yy9WbIGfIV+XKfLs7eoBX7khk01LcqZZoSTS15y5IxLQnx3Yebwzetsryh/vEXKLps8Gw4xGwkj54Lm3M=
Hi group,
I have a server with dual xeon 2 GB Ram (Linux OS). Earlier I was
runing openldap 2.0.x after which I migrated to 2.3.4. It has been
running fine until recetly it started giving problems. All of a sudden
all lookup fail and I have to restart all the services.
here is my slapd config file.
[root@host]# grep -v '^#' slapd.conf | grep -v '^$'
---------------------------
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/qmail.schema
include /etc/openldap/schema/LDAP.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
allow bind_v2
sizelimit 3000
loglevel 0
database bdb
suffix "o=domain,c=in"
rootdn "cn=Manager,o=domain,c=in"
cachesize 5000
checkpoint 1024 5
rootpw password
directory /usr/local/var/openldap-data
index objectClass eq
index mailAlternateAddress pres,eq
index cn pres,eq
index mail pres,eq
index uid pres,eq
index mailQuotaSize,mailForwardingAddress,accountStatus,mailHost,deliveryMode
pres,eq
database monitor
access to dn.subtree="cn=Monitor"
by dn.exact="cn=Manager,o=domain,c=in" write
by users read
by * none
---------------------------
my DB_CONFIG file in /usr/local/var/openldap-data/ dir
[root@host ]# grep -v '^#' DB_CONFIG | grep -v '^$'
----------------------------------
set_cachesize 0 72428800 0
set_lg_regionmax 1048576
set_lg_max 10485760
set_lg_bsize 2097152
set_lg_dir /var/lib/ldap/logs
-----------------------------------
db_stat details:
---------------------------------------
[root@host]# export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib
[root@host]# /usr/local/BerkeleyDB.4.3/bin/db_stat -h
/usr/local/var/openldap-data/ -m
86MB 354KB 112B Total cache size
1 Number of caches
86MB 360KB Pool individual cache size
0 Maximum memory-mapped file size
0 Maximum open file descriptors
0 Maximum sequential buffer writes
0 Sleep after writing maximum sequential buffers
0 Requested pages mapped into the process' address space
1513070 Requested pages found in the cache (99%)
586 Requested pages not found in the cache
2 Pages created in the cache
586 Pages read into the cache
200 Pages written from the cache to the backing file
0 Clean pages forced from the cache
0 Dirty pages forced from the cache
0 Dirty pages written by trickle-sync thread
588 Current total page count
588 Current clean page count
0 Current dirty page count
16381 Number of hash buckets used for page location
1514243 Total number of times hash chains searched for a page
1 The longest hash chain searched for a page
1513069 Total number of hash buckets examined for page location
0 The number of hash bucket locks that required waiting (0%)
0 The maximum number of times any hash bucket lock was waited for
1 The number of region locks that required waiting (0%)
636 The number of page allocations
0 The number of hash buckets examined during allocations
0 The maximum number of hash buckets examined for an allocation
0 The number of pages examined during allocations
0 The max number of pages examined for an allocation
Pool File: mailForwardingAddress.bdb
4096 Page size
0 Requested pages mapped into the process' address space
7119 Requested pages found in the cache (99%)
5 Requested pages not found in the cache
0 Pages created in the cache
5 Pages read into the cache
0 Pages written from the cache to the backing file
Pool File: accountStatus.bdb
4096 Page size
0 Requested pages mapped into the process' address space
55589 Requested pages found in the cache (99%)
14 Requested pages not found in the cache
0 Pages created in the cache
14 Pages read into the cache
8 Pages written from the cache to the backing file
Pool File: deliveryMode.bdb
4096 Page size
0 Requested pages mapped into the process' address space
46049 Requested pages found in the cache (99%)
14 Requested pages not found in the cache
0 Pages created in the cache
14 Pages read into the cache
12 Pages written from the cache to the backing file
Pool File: mailQuotaSize.bdb
4096 Page size
0 Requested pages mapped into the process' address space
54784 Requested pages found in the cache (99%)
17 Requested pages not found in the cache
0 Pages created in the cache
17 Pages read into the cache
6 Pages written from the cache to the backing file
Pool File: mailHost.bdb
4096 Page size
0 Requested pages mapped into the process' address space
32617 Requested pages found in the cache (99%)
10 Requested pages not found in the cache
0 Pages created in the cache
10 Pages read into the cache
8 Pages written from the cache to the backing file
Pool File: cn.bdb
4096 Page size
0 Requested pages mapped into the process' address space
75267 Requested pages found in the cache (99%)
27 Requested pages not found in the cache
0 Pages created in the cache
27 Pages read into the cache
7 Pages written from the cache to the backing file
Pool File: id2entry.bdb
16384 Page size
0 Requested pages mapped into the process' address space
7701 Requested pages found in the cache (96%)
258 Requested pages not found in the cache
1 Pages created in the cache
258 Pages read into the cache
13 Pages written from the cache to the backing file
Pool File: dn2id.bdb
4096 Page size
0 Requested pages mapped into the process' address space
321056 Requested pages found in the cache (99%)
95 Requested pages not found in the cache
1 Pages created in the cache
95 Pages read into the cache
19 Pages written from the cache to the backing file
Pool File: objectClass.bdb
4096 Page size
0 Requested pages mapped into the process' address space
624425 Requested pages found in the cache (99%)
62 Requested pages not found in the cache
0 Pages created in the cache
62 Pages read into the cache
24 Pages written from the cache to the backing file
Pool File: mail.bdb
4096 Page size
0 Requested pages mapped into the process' address space
105670 Requested pages found in the cache (99%)
25 Requested pages not found in the cache
0 Pages created in the cache
25 Pages read into the cache
7 Pages written from the cache to the backing file
Pool File: mailAlternateAddress.bdb
4096 Page size
0 Requested pages mapped into the process' address space
92298 Requested pages found in the cache (99%)
36 Requested pages not found in the cache
0 Pages created in the cache
36 Pages read into the cache
89 Pages written from the cache to the backing file
Pool File: uid.bdb
4096 Page size
0 Requested pages mapped into the process' address space
90495 Requested pages found in the cache (99%)
23 Requested pages not found in the cache
0 Pages created in the cache
23 Pages read into the cache
7 Pages written from the cache to the backing file
----------------------------------------
I don't know from where to start debugging, so please help.
If any more info has to be provided please let me known
Thanx Regards
Ramdas