Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mmap: Cannot allocate memory

676400Apr 15 2009 — edited Apr 16 2009
Hi,

I am running Berkeley DB XML 2.4.16 on Red Hat Enterprise Linux AS release 3 (Taroon Update 6).

I have a small test program (Java) that configures the environment with the following.

config.setAllowCreate(true);
config.setInitializeCache(true);
config.setTransactional(true);
config.setInitializeLocking(true);
config.setInitializeLogging(true);
config.setVerbose(VerboseConfig.DEADLOCK, true);
config.setVerbose(VerboseConfig.RECOVERY, true);
config.setVerbose(VerboseConfig.WAITSFOR, true);
config.setVerbose(VerboseConfig.REGISTER, true);
config.setRegister(true);
config.setRunRecovery(true);

The environment data directory has a DB_CONFIG with the following single line.

set_cachesize 1 524288000 3

When run, it produces the following error.

mmap: Cannot allocate memory
PANIC: Cannot allocate memory
unable to join the environment

What is somewhat bizarre is that I also have a equivalent C++ application that has no problem opening the environment with even a 2.5GB cache size.

I have also observed this on other flavors of Linux and also with earlier versions of Berkeley DB XML.

Any insight would be helpful.

Thanks,

Neil

Edited by: vannote on Apr 15, 2009 3:21 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2009
Added on Apr 15 2009
3 comments
3,288 views