We use BDB JE in one of our applications, and DbDump
for backing up database. The interesting things happened one day. DbDump
starts to throw out an OutOfMemoryError
. Postmortem analysis shows that a lot of memory is used by internal BDB nodes (IN
). It seems like BerkleyDB reads all the dataset in memory while backing it up, which is quite strange for me.
Another strange fact is that this behavior only visible when the environment is open by the application itself. So when DbDumb is the only client who open environment everything seems to be fine.