4322: Upgrading a large database to new version runs out of memory; increase locktable size
svn: r17385
This commit is contained in:
parent
a8a8b41210
commit
bdf97fabd0
@ -59,8 +59,8 @@ DBMODE_W = "w" # Full Reaw/Write access
|
|||||||
DBPAGE = 16384 # Size of the pages used to hold items in the database
|
DBPAGE = 16384 # Size of the pages used to hold items in the database
|
||||||
DBMODE = 0666 # Unix mode for database creation
|
DBMODE = 0666 # Unix mode for database creation
|
||||||
DBCACHE = 0x4000000 # Size of the shared memory buffer pool
|
DBCACHE = 0x4000000 # Size of the shared memory buffer pool
|
||||||
DBLOCKS = 25000 # Maximum number of locks supported
|
DBLOCKS = 100000 # Maximum number of locks supported
|
||||||
DBOBJECTS = 25000 # Maximum number of simultaneously locked objects
|
DBOBJECTS = 100000 # Maximum number of simultaneously locked objects
|
||||||
DBUNDO = 1000 # Maximum size of undo buffer
|
DBUNDO = 1000 # Maximum size of undo buffer
|
||||||
|
|
||||||
from bsddb.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY
|
from bsddb.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY
|
||||||
|
@ -1016,6 +1016,11 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
return
|
return
|
||||||
self.env.txn_checkpoint()
|
self.env.txn_checkpoint()
|
||||||
|
|
||||||
|
lockstats = self.env.lock_stat()
|
||||||
|
_LOG.debug("lock occupancy: %d%%, locked object occupancy: %d%%" % (
|
||||||
|
round(lockstats['maxnlocks']*100/lockstats['maxlocks']),
|
||||||
|
round(lockstats['maxnobjects']*100/lockstats['maxobjects'])))
|
||||||
|
|
||||||
self.__close_metadata()
|
self.__close_metadata()
|
||||||
self.name_group.close()
|
self.name_group.close()
|
||||||
self.surnames.close()
|
self.surnames.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user