Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BdbStorageEngine : add some output re cache, cleaner thread and log f…

…ile params to output on startup
  • Loading branch information...
commit f2dcd039f934197b590e7f420505987c265226a7 1 parent 62f6228
Geir Magnusson Jr authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/java/voldemort/store/bdb/BdbStorageEngine.java
View
13 src/java/voldemort/store/bdb/BdbStorageEngine.java
@@ -53,6 +53,7 @@
import com.sleepycat.je.LockMode;
import com.sleepycat.je.OperationStatus;
import com.sleepycat.je.Transaction;
+import com.sleepycat.je.EnvironmentConfig;
/**
* A store that uses BDB for persistence
@@ -80,6 +81,18 @@ public BdbStorageEngine(String name, Environment environment, Database database)
this.environment = environment;
this.serializer = new VersionedSerializer<byte[]>(new IdentitySerializer());
this.isOpen = new AtomicBoolean(true);
+
+ try {
+ logger.info(" BDB[" + name + "] : cache size = " + environment.getConfig().getCacheSize());
+ logger.info(" BDB[" + name + "] : " + EnvironmentConfig.CLEANER_THREADS + " = "
+ + environment.getConfig().getConfigParam(EnvironmentConfig.CLEANER_THREADS));
+ logger.info(" BDB[" + name + "] : " + EnvironmentConfig.CLEANER_MIN_FILE_UTILIZATION + " = "
+ + environment.getConfig().getConfigParam(EnvironmentConfig.CLEANER_MIN_FILE_UTILIZATION));
+ logger.info(" BDB[" + name + "] : " + EnvironmentConfig.LOG_FILE_MAX + " = "
+ + environment.getConfig().getConfigParam(EnvironmentConfig.LOG_FILE_MAX));
+ } catch (DatabaseException e) {
+ logger.error("Error getting config inforation for BDB at startup", e);
+ }
}
public String getName() {
Please sign in to comment.
Something went wrong with that request. Please try again.