[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Limit on number of database that slapd can open?

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Armbrust, Daniel

> Is there any limit on the number of databases that a slapd
> server can host?

There is no coded limit.

> I have several databases configured to start under one server
> (all with a bdb backend), and now I get this error on startup:
> .....
> bdb_db_open: service=ISOTerminologyService,dc=ISO,dc=org
> bdb_db_open: dbenv_open(/home/ldap/database/dbisoBDB/)
> bdb_db_open: service=ICD9Service,dc=HL7,dc=org
> bdb_db_open: dbenv_open(/home/ldap/database/dbicd9BDB/)
> bdb(service=ICD9Service,dc=HL7,dc=org): mmap: Cannot allocate memory
> bdb_db_open: dbenv_open failed: Cannot allocate memory (12)
> backend_startup: bi_db_open(6) failed! (12)
> slapd shutdown: initiated
> .....
> If I removed one of the larger databases, then things work fine.

It sounds like you have run out of memory.

> If I have multiple bdb databases, do each of their DB_CONFIG
> files need to be the same?  My assumption is that each
> database gets a cache according to its DB_CONFIG file (or
> other defaults if it doesn't exist).

You cannot have multiple backends share a single DB_CONFIG file, (unless
you're using links) since they must all reside in separate directories.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support