In Slapd, how do I deal with the “connection table full (64/64)” error?

62 views
Skip to first unread message

Salim Fadhley

unread,
Jan 19, 2009, 6:36:36 AM1/19/09
to openldap
I'm working on an application which makes heavy use of LDAP. For now
we are using the slapd LDAP server on a Windows platform.

Our system scales with demand, so at peak times there will be more
application servers. Each application server is multi-threaded and may
make up to 16 concurrent connections to the single LDAP server.

Any time the system tries to make more than 64 concurrent connections
to the LDAP server, the slapd will block any further connection
attempts.

It's obvious that the slapd connection pool is maxed-out, but how do I
make it bigger? The machine we run Slapd on is a very-powerful 8-core
server, so we can theoretically a few hundred concurrent connections.
Furthermore, a previous incarnation of this project ran slapd on an
Ubuntu Linux dual-core server. It was able to handle twice the load of
ours without any problem, so it would appear that our troubles are
Windows specific.

At the moment we are using openldap-2.2.19-db-4.3.21-openssl-0.9.7e-
win32.exe - we are migrating a project with some very strange schemas.
Using the latest version causes our project to crash because of the
invalid schemas, however this particular version was found to work
well on Ubuntu.

Augusto Ferronato

unread,
Jan 19, 2009, 12:27:20 PM1/19/09
to open...@googlegroups.com
post here your slapd.conf

What's bd your is using for your LDAP?

#######################################################################
# Specific Backend Directives for bdb:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend bdb
checkpoint 512 30
cachesize 100000
idlcachesize 100000
checkpoint 512 15
sizelimit 10000
dbnosync


:)
--
------------------------------
http://www.augustoferronato.net/blog

FreeBSD: The Freedom to Perform!
http://www.spreadbsd.org/aff/40/1

Salim Fadhley

unread,
Jan 20, 2009, 4:10:23 AM1/20/09
to openldap
Thank you Augusto, unfortunately that config change does not seem to
affect the server. It still maxes out after 64 connections. I've put
my slapd.conf here:
http://pastebin.com/m2f45d098

Also, is there a way to query a currently running slapd server to find
out how many connections are currently open?

On Jan 19, 5:27 pm, Augusto Ferronato <augusto.ferron...@gmail.com>
wrote:
> post here your slapd.conf
>
> What's bd your is using for your LDAP?
>
> #######################################################################
> # Specific Backend Directives for bdb:
> # Backend specific directives apply to this backend until another
> # 'backend' directive occurs
> backend         bdb
> checkpoint 512 30
> cachesize 100000
> idlcachesize 100000
> checkpoint 512 15
> sizelimit 10000
> dbnosync
>
> :org/aff/40/1
Reply all
Reply to author
Forward
0 new messages