Set smaller page size of map for JPS process

Due to the huge number of incremental maps, memory consumption becomes a bottleneck, due to which the incremental build hangs. Reducing the size of the map's pages for the JPS build allows to keep more maps open

GitOrigin-RevId: 3b11f895168c578cfa82716df4c7303c5d68f477
This commit is contained in:
Aleksei.Cherepanov
2022-06-01 17:36:26 +02:00
committed by intellij-monorepo-bot
parent 031eb02b63
commit 31ea01c625
2 changed files with 3 additions and 1 deletions

View File

@@ -1339,6 +1339,7 @@ public final class BuildManager implements Disposable {
}
}
cmdLine.addParameter("-D" + GlobalOptions.REBUILD_ON_DEPENDENCY_CHANGE_OPTION + "=" + config.REBUILD_ON_DEPENDENCY_CHANGE);
cmdLine.addParameter("-D" + "idea.IntToIntBtree.page.size" + "=" + 32*1024);
if (Registry.is("compiler.build.report.statistics")) {
cmdLine.addParameter("-D" + GlobalOptions.REPORT_BUILD_STATISTICS + "=true");