########################################################################### # Visokio Omniscope shell script # # # # Also be sure you save the shell scripts with the Unix/Linux line-ending.# ########################################################################### #!/bin/bash # Change to x86 for 32-bit system. Or specify a different location of Java altogether. JAVA_CMD=x64/bin/java # Change 1100m to the recommended memory limit - 75% of physical memory, typically, e.g. 6000M on an 8gb system. # Currently using 27gb, after observing that when maxed out Java consumes an extra 4.3gb of "resident" memory JAVA_VM_PARS='-Xms64M -Xmx6000m -XX:MaxPermSize=128M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=50 -XX:NewRatio=8 -XX:+UseG1GC' # Do not change JAVA_CP='Main.jar:lib/*' DIR="$( cd "$( dirname "$0" )" && pwd )" cd "$DIR" xvfb-run --server-args='-screen 0, 1024x768x16' "$JAVA_CMD" $JAVA_VM_PARS $ADD_VM_PARS -cp "$JAVA_CP" "$@"