I m using in-memory log buffer in Berkeley BerkeleyDB-Core-JAVA edition. I have CDRFile of 9 lack records. When I am writing CDRFile in database in durable database environment(i.e log files are created) then total 1.08gb of log files are created and when I am setting this two parameters of in memory log buffer:
envconfig.setLogInMemory(true);
envconfig.setLogBufferSize(1181116006); // 1.10 gb
i m 出现错误,如:
-------------------------error----------------
PANIC: Not enough space
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
unable to join the environment
DataBase Exceptioncom.sleepycat.db.RunRecoveryException: DB_RUNRECOVERY: Fatal error,
run database recovery: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
unable to join the environment: DB_RUNRECOVERY: Fatal error, run database recovery
Writing DataBase Exception--->java.lang.NullPointerException
------------------------------error----------------------
因此,我认为,如果在磁盘上设定1个目录,那么我还必须将1gb的空间放在缓冲记忆中,用于记录档案。