[Date Prev][Date Next]
ldap is too slow, even uncommunicable.
Im having some problems with OpenLDAP, its getting really slow under
load, although it wasn't. the problem follows: from yesterday to today ldap
seems to stop answerings... im use it as backend for
samba/postfix/pop3/squid so it was working perfect:
Here I've raised the loglevel to 256 to see if it could search, yes it could
search, I could see a lot of searchs going on... but not my search that were
taking too long to show up, in fact they didn't.
When I do ldapsearch -x -z 0 -l 0 , I get:
# search result
result: 4 Size limit exceeded
# numResponses: 501
# numEntries: 500
Although I got 583 entries, I checked this using:
ldap:/etc/ldap# slapcat |grep ^dn|wc -l
Hey that's not much.
Basically when I put my samba servers (I got 2) it start getting slow slow
slow ... until I get cant connect to ldap server.
Sep 9 10:03:27 smb smbd: failed to bind to server with dn=
cn=admin, dc=tcm, dc=pa, dc=gov, dc=br Error: Can't contact LDAP server
Or either with ldapsearch: Can't connect to LDAP Server.
Here follows my slapd.conf (important sections):
# Read slapd.conf(5) for possible values
# idle timeout
im using database ldbm
rest is default like access lists, index, etc, im using slapd
2.0.23-6.3 , from Debian, 3.0r2 (stable)
Also I get like 20 established connections to my LDAP server and around 60
with either SYN_RECV/CLOSE_WAIT on netstat , all by samba server.
Anyone got any clue where to starting looking for? I already restart ldap
server, recreated indexes, increased its size, also when I put samba servers
down it starts going fast, as its normal operation.
Ah, here are the sizes of my base: pretty small imho.
ldap:/var/lib/ldap# du -sh *
Im running a p4 2.8Ghz Xeon, 1Gb DDR , it's a IBM xSeries 345 server.
Thanks on any reply, everyone is stopped because they cant work :( (its
around 450 people)