Andy Rayne
Andy Rayne

Reputation: 13

Defragmenting very large db4o database files

I have a very large ( 102gb ) db4o .yap file that i am trying to defragment. I keep getting a java heap space error. Is there something i can do to tweak the settings to prevent this? I am already setting the objectCommitFrequency to 10000. I am giving the java process 3 gigs of memory to run this but it still crashes.

Upvotes: 1

Views: 368

Answers (1)

Gamlor
Gamlor

Reputation: 13238

The only thing which might help is to use the DatabaseIdMapping. But I guess you already tried this, no?

IdMapping mapping = new DatabaseIdMapping("temporary-mapping.tmp");
DefragmentConfig config = new DefragmentConfig("database.db4o", "database.db4o.back", mapping);

Defragment.defrag(config);

Upvotes: 1

Related Questions