Skip to content

Commit

Permalink
Set cache max size
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblum committed Nov 5, 2024
1 parent 41082ee commit 734ba81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public BerkeleyDBJE(File directory) {
// Set up the environment
EnvironmentConfig envConfig = new EnvironmentConfig();
envConfig.setAllowCreate(true);
// envConfig.setCacheSize(24L * 1024 * 1024 * 1024); // do not hard-code max memory
envConfig.setCacheSize(24L * 1024 * 1024 * 1024);
envConfig.setTransactional(false);

// *.jdb files target size (200M)
Expand Down

0 comments on commit 734ba81

Please sign in to comment.