[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
mmap: Cannot allocate memory?
I have run into this before, and then I was able to get around it by running db_recover. However, now, even when I do a db_recover on every database, when I try to start openldap and open all of these databases, I get this error:
slapd startup: initiated.
bdb_db_open: dbenv_open(/home/ldap/database/dbunspscBDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbMeSHBDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbrxnormBDB/)
bdb_db_open: dbenv_open(/home/ldap/database/dbNETBDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbietfBDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbndfrtBDB/)
bdb_db_open: dbenv_open(/home/ldap/database/dbisoBDB/)
bdb_db_open: dbenv_open(/home/ldap/database/dbnciBDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbhl7BDB)
bdb_db_open: dbenv_open(/home/ldap/database/dbSCTBDB)
bdb(service=SCT,dc=HL7,dc=org): mmap: Cannot allocate memory
bdb(service=SCT,dc=HL7,dc=org): PANIC: Cannot allocate memory
bdb_db_open: dbenv_open failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30978)
backend_startup: bi_db_open(9) failed! (-30978)
slapd shutdown: initiated
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
====> bdb_cache_release_all
slapd shutdown: freeing system resources.
bdb(service=SCT,dc=HL7,dc=org): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.
I am trying to figure out what exactly is running out of memory, but I don't know the openldap source code very well. BerkeleyDB documents that they have debugging modes you can turn on - could someone point me to what I would have to do in the ldap source code to make berkeley give me more detailed errors?
Thanks,
Dan