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!

Memory leak after multiple open-close Environment

525672Jul 30 2006 — edited Aug 14 2006
Hello, dear developers of JE

It seems to me that I face with insuperable obstacle.
I run JUnit3.8 tests on WindowsXP, 512Mb, JDK1.5. Before execute every test method in setup() I open Environment, create 3-5 Databases. Then put 3-10 small objects, read them. After test in tearDown() I close and remove all Databases, close Environment and remove its files from disk, collect garbage.

During running few test cases that consist of not more then 100 test methods OutOfMemoryError happens. Increasing of cache memory increases the number of executed test cases before crash. Setting je.log.memOnly to true accelerate raising the exception.
Separate test methods execution is successful.

Thanks, Alex

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 11 2006
Added on Jul 30 2006
3 comments
1,432 views