From 2e056b3fab554d78700bbccd42a1ebb43d7f52b3 Mon Sep 17 00:00:00 2001 From: nochkin Date: Sat, 28 Sep 2024 23:34:24 -0400 Subject: [PATCH] Add java options to resolve crash --- startapp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startapp.sh b/startapp.sh index dbedf9b..9125653 100644 --- a/startapp.sh +++ b/startapp.sh @@ -129,7 +129,8 @@ if [ -n "$IDRAC_KEYCODE_HACK" ]; then export LD_PRELOAD=/keycode-hack.so fi -exec java -cp avctKVM.jar -Djava.library.path="./lib" com.avocent.idrac.kvm.Main ip=${IDRAC_HOST} kmport=${IDRAC_VNC_PORT} vport=${IDRAC_VNC_PORT} user=${IDRAC_USER} passwd=${IDRAC_PASSWORD} apcp=1 version=2 vmprivilege=true "helpurl=https://${IDRAC_HOST}:${IDRAC_PORT}/help/contents.html" & + +exec java -cp avctKVM.jar -XX:+AlwaysPreTouch -XX:+TieredCompilation -XX:NewRatio=1 -XX:+UseConcMarkSweepGC -XX:MaxMetaspaceSize=1024m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:MaxTenuringThreshold=15 -Djava.library.path="./lib" com.avocent.idrac.kvm.Main ip=${IDRAC_HOST} kmport=${IDRAC_VNC_PORT} vport=${IDRAC_VNC_PORT} user=${IDRAC_USER} passwd=${IDRAC_PASSWORD} apcp=1 version=2 vmprivilege=true "helpurl=https://${IDRAC_HOST}:${IDRAC_PORT}/help/contents.html" & # If an iso exists at the specified location, mount it [ -f "/vmedia/$VIRTUAL_ISO" ] && /mountiso.sh