Hello People,
I'm importing a ldif file in a ldapserver which has 200 different databases on it. The max is 256 by the way. I import the ldif in every database only with a different DN per database of course.
I can import the ldif file in about 30 databases and then the server gives the error message:
"ldapadd: Internal (implementation specific) error (80)"
And in de slapd.log:
bdb_locker_id: err Cannot allocate memory(12)
The ldif file consist of about 8000 lines.
Is there some kind of maximum entries per database and can I expand the maximum.
I just can't imagine that there is a maximum of 8000 * 30 = 240000
Hope someone can help me.
Regards,
Hendrik
Hendrik van der Ploeg hvdploeg@competa.com writes:
Hello People,
I'm importing a ldif file in a ldapserver which has 200 different databases on it. The max is 256 by the way. I import the ldif in every database only with a different DN per database of course.
I can import the ldif file in about 30 databases and then the server gives the error message:
"ldapadd: Internal (implementation specific) error (80)"
And in de slapd.log:
bdb_locker_id: err Cannot allocate memory(12)
The ldif file consist of about 8000 lines.
Is there some kind of maximum entries per database and can I expand the maximum.
I just can't imagine that there is a maximum of 8000 * 30 = 240000
Hope someone can help me.
I am not arguing on the rather strange setup but did you configure BerkeleyDB properly? The default is 256 K.
-Dieter
Op 25-03-11 12:59, Hendrik van der Ploeg schreef:
Hello People,
I'm importing a ldif file in a ldapserver which has 200 different databases on it. The max is 256 by the way. I import the ldif in every database only with a different DN per database of course.
I can import the ldif file in about 30 databases and then the server gives the error message:
"ldapadd: Internal (implementation specific) error (80)"
And in de slapd.log:
bdb_locker_id: err Cannot allocate memory(12)
The ldif file consist of about 8000 lines.
Is there some kind of maximum entries per database and can I expand the maximum.
I just can't imagine that there is a maximum of 8000 * 30 = 240000
Hope someone can help me.
Regards,
Hendrik
Hallo Dieter,
Thanks for your reply.
Below you can see my DB_CONFIG file
# one 0.25 GB cache set_cachesize 0 30000000 1 set_lk_max_locks 10000
# Data Directory #set_data_dir db
# Transaction Log settings set_lg_regionmax 262144 set_lg_bsize 2097152 set_flags DB_LOG_AUTOREMOVE #set_lg_dir logs
Am Sun, 27 Mar 2011 11:41:07 +0200 schrieb Hendrik van der Ploeg HvdPloeg@competa.com:
Op 25-03-11 12:59, Hendrik van der Ploeg schreef:
Hello People,
I'm importing a ldif file in a ldapserver which has 200 different databases on it. The max is 256 by the way. I import the ldif in every database only with a different DN per database of course.
I can import the ldif file in about 30 databases and then the server gives the error message:
"ldapadd: Internal (implementation specific) error (80)"
And in de slapd.log:
bdb_locker_id: err Cannot allocate memory(12)
The ldif file consist of about 8000 lines.
Is there some kind of maximum entries per database and can I expand the maximum.
I just can't imagine that there is a maximum of 8000 * 30 = 240000
Hope someone can help me.
Regards,
Hendrik
Hallo Dieter,
Thanks for your reply.
Below you can see my DB_CONFIG file
# one 0.25 GB cache set_cachesize 0 30000000 1 set_lk_max_locks 10000
# Data Directory #set_data_dir db
# Transaction Log settings set_lg_regionmax 262144 set_lg_bsize 2097152 set_flags DB_LOG_AUTOREMOVE #set_lg_dir logs
p
As you have mentioned that you have created 200 databases, did you create a DB_CONFIG file for all of this databases?
-Dieter
Op 25-03-11 12:59, Hendrik van der Ploeg schreef:
Am Sun, 27 Mar 2011 11:41:07 +0200 schrieb Hendrik van der PloegHvdPloeg@competa.com:
Op 25-03-11 12:59, Hendrik van der Ploeg schreef:
Hello People,
I'm importing a ldif file in a ldapserver which has 200 different databases on it. The max is 256 by the way. I import the ldif in every database only with a different DN per database of course.
I can import the ldif file in about 30 databases and then the server gives the error message:
"ldapadd: Internal (implementation specific) error (80)"
And in de slapd.log:
bdb_locker_id: err Cannot allocate memory(12)
The ldif file consist of about 8000 lines.
Is there some kind of maximum entries per database and can I expand the maximum.
I just can't imagine that there is a maximum of 8000 * 30 = 240000
Hope someone can help me.
Regards,
Hendrik
Hallo Dieter,
Thanks for your reply.
Below you can see my DB_CONFIG file
# one 0.25 GB cache set_cachesize 0 30000000 1 set_lk_max_locks 10000
# Data Directory #set_data_dir db
# Transaction Log settings set_lg_regionmax 262144 set_lg_bsize 2097152 set_flags DB_LOG_AUTOREMOVE #set_lg_dir logs
p
As you have mentioned that you have created 200 databases, did you create a DB_CONFIG file for all of this databases?
-Dieter
Am Sun, 27 Mar 2011 13:20:49 +0200 schrieb Hendrik van der Ploeg HvdPloeg@competa.com: [...]
Yes I did. All databases are in a seperate directory with a DB_CONFIG file in each directory
And the total amount of memory your system provides? Think about what you are aiming at.
-Dieter
Yes I did. All databases are in a seperate directory with a DB_CONFIG file in each directory
And the total amount of memory your system provides? Think about what you are aiming at.
The systems has 2Gb RAM. But even when I raise it to 4GB the errors occur at the exact same point during the ldap ldif import.
There is some sort of limitation I'm running into. But what is it?
Regards,
Hendrik
Am Sun, 27 Mar 2011 14:38:08 +0200 schrieb Hendrik van der Ploeg HvdPloeg@competa.com:
Yes I did. All databases are in a seperate directory with a DB_CONFIG file in each directory
And the total amount of memory your system provides? Think about what you are aiming at.
The systems has 2Gb RAM. But even when I raise it to 4GB the errors occur at the exact same point during the ldap ldif import.
There is some sort of limitation I'm running into. But what is it?
200 x 30000000 = ?
-Dieter
200 x 30000000 = ?
-Dieter
Hello,
I've created an other solution.
I upgraded to openldap 2.4 so I was able to put multiple syncrepl rid's into 1 database.
Then I added 200 different DN's in it and it replicated everything.
Thanks for your help.
Regards,
Hendrik
openldap-technical@openldap.org