properties.setProperty(PROPERTY_MAX_HEAP_SIZE, maxJavaHeapSize.name());
}
private void initInitialHeapSize() {
final String initialHeapSizeStr = properties.getProperty(PROPERTY_INITIAL_HEAP_SIZE);
JavaHeapSize initialJavaHeapSize = INITIAL_HEAP_SIZE_DEFAULT;
if (initialHeapSizeStr != null) {
try {
initialJavaHeapSize = JavaHeapSize.valueOf(initialHeapSizeStr);
} catch (IllegalArgumentException e) {
logger.warn(WARN_MSG_INVALID_VALUE, initialHeapSizeStr, PROPERTY_INITIAL_HEAP_SIZE);
}
}
properties.setProperty(PROPERTY_INITIAL_HEAP_SIZE, initialJavaHeapSize.name());
}