dbTalk Databases Forums  

Re: Exception Dbc::get: Cannot allocate memory

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Re: Exception Dbc::get: Cannot allocate memory in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Exception Dbc::get: Cannot allocate memory - 12-17-2005 , 06:56 AM






* Kiran Kumar M. R.:

Quote:
I got an exception in cursor-> get() operation. The exception thrown
was "Dbc::get: Cannot allocate memory".

Why is this exception coming?
You are likely running out of locks. You get a more detailed error
message if you enable extended error handling:

<http://www.sleepycat.com/docs/ref/debug/runtime.html>


Reply With Quote
  #2  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Exception Dbc::get: Cannot allocate memory - 12-19-2005 , 03:35 AM






* Kiran Kumar M. R.:

Quote:
Does this reflect any limitation in locking configuration which results
in the above exception?
I would think so:

Quote:
1000 Maximum number of locks possible
1000 Maximum number of lockers possible
1000 Maximum number of lock objects possible
2 Number of current locks
1000 Maximum number of locks at any one time
[...]
1000 Maximum number of lock objects at any one time
You could create a DB_CONFIG file with appropriate settings, for
example:

set_lk_max_locks 30000
set_lk_max_objects 30000

See the documentation for details. You may have to adjust the
settings to your own needs. It's a bit unfortunate that Berkeley DB
cannot dynamically increase the number of locks and lock objects.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.