Skip to content

Commit

Permalink
'#1712: Reduce the automatically set maximum for "-Xmx" to 32500MB.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Mar 12, 2024
1 parent 422f715 commit 8c2cdbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iped-app/src/main/java/iped/app/bootstrap/Bootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ protected void run(String args[]) {
}

if (!XmxDefined) {
// if -Xmx is not specified, set it, up to 32GB
long memSize = Math.min((long) (physicalMemory * getRAMToHeapFactor()), 32L * 1024 * 1024 * 1024);
// if -Xmx is not specified, set it, up to 32500MB
long memSize = Math.min((long) (physicalMemory * getRAMToHeapFactor()), 32500L * 1024 * 1024);
heapArgs.add("-Xmx" + (memSize / (1024 * 1024)) + "M");
}

Expand Down

0 comments on commit 8c2cdbc

Please sign in to comment.