[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slow search and connection problem
- To: openldap-technical@openldap.org
- Subject: slow search and connection problem
- From: mukim pathan <mukim.iitkgp@gmail.com>
- Date: Wed, 22 Jul 2009 15:18:53 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=6Akg4OoO0tTEQtmZ8qS8txqVP5rfVlPHnqURxymTnsk=; b=P/x9dhVhN3sz2y7LrZAGOdHtLXZqx91f4QlEzmktc3blv/l9N7Fzjfo5KmSu0bzAT6 Ftb/AhljiWNfLcWEZZM3Dmv3bjqbeAxT6OqQ+WZpJFigMJtB3tbBMaW8xIfkQnOFBKn5 x3arWOGAq9rhIgkXztUG25gaYen95gRtE4sy0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DjNY2qnR7VzWyyP6fHO11xiXG3wmCfv2gwPQAGqrv8W0dw3jlcJhKKFtydc6yc7zWD vJ8NRIp3XaOsw1saNtNUgJImsd1KKrS38v3xi3VVz0SyL+TGCcyss7MM0C2c9bXC77uw fyC1KPeFZt2KE9HodT4QM8sirEhpuwg+khsCI=
Hi,
I am using openldap2.4.16 with bdb 4.5. I am doing search in database using java. When I am doing search for first time, it is connecting and giving response in 4-5 milliseconds. But then its is taking around 100-150ms for search.I don't know what might be the problem. I searched online for this but could not find any solution. Following are my ldap configuration files.
slapd.conf :
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/xxx.schema
allow bind_v2
concurrency 3
threads 3
database bdb
suffix "dc=xxx,dc=com"
rootdn "cn=Manager,dc=xxx,dc=com"
rootpw xxx
directory /usr/local/var/openldap-data
index objectClass eq
index attr1 eq
index attr2 eq
index attr3 eq
checkpoint 1024 60
cachesize 1000000
DBCONFIG:
set_cachesize 2 268435456 1
set_lg_dir /opt2/logs
set_data_dir /opt2/db
set_flags DB_LOG_AUTOREMOVE
Please help me with any improvements i must do to get fast search result.
Regards,
Mukim Pathan