Openldap  2.4.40-6.el6_7 

RHEL 6.7

mdb backend


ldapmodify  is hanging;  the hang first evidenced itself in a bulk update.  The hang occurs even for a simple update -- with debug set to 1 on the ldapmodify statement (using interactive mode) the  block of output listed at below repeats endlessly with no change to the values displayed.  The slapd audit log shows no update for the intended record.


The problem started after I added a significant amount of data;  not new structural objects (OUs) but many entries under them.  Have I reached some sort of threshold?


I have:

- stopped/started slapd; 

- run a full slapcat and slapadd to a new database


I am running the monitor database; would there be data of value there about this condition?


mdb_stats output:


 sudo mdb_stat -ef /etc/openldap/openldap-data 
Environment Info
  Map address: (nil)
  Map size: 8589934592
  Page size: 4096
  Max pages: 2097152
  Number of pages used: 618975
  Last transaction ID: 3647
  Max readers: 126
  Number of readers used: 0
Freelist Status
  Tree depth: 1
  Branch pages: 0
  Leaf pages: 1
  Overflow pages: 11
  Entries: 7
  Free pages: 5233
Status of Main DB
  Tree depth: 1
  Branch pages: 0
  Leaf pages: 1
  Overflow pages: 0
  Entries: 16

debug output from ldapmodify:


** ld 0x1ed4e30 Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
  ld 0x1ed4e30 request count 1 (abandoned 0)
** ld 0x1ed4e30 Response Queue:
   Empty
  ld 0x1ed4e30 response count 0
ldap_chkResponseList ld 0x1ed4e30 msgid 2 all 1
ldap_chkResponseList returns ld 0x1ed4e30 NULL
ldap_int_select
ldap_result ld 0x1ed4e30 msgid 2
wait4msg ld 0x1ed4e30 msgid 2 (timeout 100000 usec)
wait4msg continue ld 0x1ed4e30 msgid 2 all 1
** ld 0x1ed4e30 Connections:
* host: localhost  port: 389  (default)

  refcnt: 2  status: Connected
  last used: Thu Mar  3 10:04:05 2016


** ld 0x1ed4e30 Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
  ld 0x1ed4e30 request count 1 (abandoned 0)
** ld 0x1ed4e30 Response Queue:
   Empty
  ld 0x1ed4e30 response count 0
ldap_chkResponseList ld 0x1ed4e30 msgid 2 all 1
ldap_chkResponseList returns ld 0x1ed4e30 NULL
ldap_int_select
ldap_result ld 0x1ed4e30 msgid 2
wait4msg ld 0x1ed4e30 msgid 2 (timeout 100000 usec)
wait4msg continue ld 0x1ed4e30 msgid 2 all 1
** ld 0x1ed4e30 Connections:
* host: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Thu Mar  3 10:04:05 2016

...etc