Hello,
thanks for the reply.
The script works fine with the use of a 2nd connection for the modify request but ... during the execution of my script, the file data.mdb grows up considerably.
First time, I configured maxsize value with a 3GB in slapd.conf.
Then I modified the script to use 2 connections.
After that, I ran the script. Everything went right until and I was confronted to a MDB_MAP_FULL error in ldap.log.
Indeed, data.mdb reaches the max size.
So, I stopped slapd, I modified the maxsize to 5Gb value in slapd.conf and then, I restarted slapd.
I ran the script again and I checked the size of data.mdb.
Before runnig the script, the real size of data.mdb is about 700M.
Once the script finished, the real size of data.mdb is about 4.5G.
During execution, memory consumption of slapd increases up progressively to reach 83% at the end of execution.
Of course, if I make a slapcat then a slapadd, the size of data.mdb return to 696M.
I run mdb_stat -f before the use of script :
mdb_stat -f /var/lib/ldap
Freelist Status
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 35
Entries: 14
Free pages: 17300
Status of Main DB
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 0
Entries: 25
And then after the execution of script :
mdb_stat -f /var/lib/ldap
Freelist Status
Tree depth: 3
Branch pages: 12
Leaf pages: 2418
Overflow pages: 7
Entries: 55122
Free pages: 986942
Status of Main DB
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 0
Entries: 25
After some search, I found the message "(ITS#7565) unacceptable growth on delete with back-mdb" which looks like my problem.
Have you got any suggestions ?
Thanks,
Grégory Trucy