Fixes an out of memory issue with rebuild-index caused by memory leaks during large rebuilds. The DB cache size was being configured too late in the rebuild-index initialization and so the default cache size of 60% heap was being used, which caused memory budgeting failures.
| | |
| | | .getDBCleanerMinUtilization())); |
| | | envConfig.setConfigParam(EnvironmentConfig.LOG_FILE_MAX, String |
| | | .valueOf(cfg.getDBLogFileMax())); |
| | | |
| | | Importer importer = new Importer(rebuildConfig, cfg, envConfig); |
| | | rootContainer = initializeRootContainer(envConfig); |
| | | importer.rebuildIndexes(rootContainer); |
| | | } |
| | | else |
| | | { |
| | | envConfig = ConfigurableEnvironment.parseConfigEntry(cfg); |
| | | } |
| | | |
| | | Importer importer = new Importer(rebuildConfig, cfg, envConfig); |
| | | importer.rebuildIndexes(rootContainer); |
| | | } |
| | | } |
| | | catch (ExecutionException execEx) |
| | | { |
| | | if (debugEnabled()) |