We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b6c1d commit 38079f7Copy full SHA for 38079f7
bin/run-clara
@@ -52,14 +52,9 @@ shift $((OPTIND-1))
52
inputs=$@
53
54
# Configure JVM memory settings (overridedable via $JAVA_OPTS):
55
-if [ -z ${large+x} ]
56
-then
57
- gb_max=$((threads<3?threads+2:threads+2-threads/4))
58
- gb_init=$((threads<3?threads:threads-threads/3))
59
-else
60
- gb_max=$((threads<3?threads+2:threads+2-threads/8))
61
- gb_init=$((threads<3?threads:threads-threads/6))
62
-fi
+gb_init=$((threads))
+gb_max=$((threads+2))
+[ $threads -gt 1 ] && ! [ -z ${large+x} ] && gb_max=$((threads*2))
63
java_opts="-Xms${gb_init}g -Xmx${gb_max}g"
64
65
# Check configuration:
0 commit comments