aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-java
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-06-09 20:25:51 +0000
committerArne Juul <arnej@verizonmedia.com>2021-06-09 20:26:49 +0000
commit2dc2671066f4cf049f8c97dadb5886e03526de13 (patch)
tree692e5f23e1f144f55c94744f3ea04511efcfc089 /vespaclient-java
parentc06858662444df75af8d6b55fbe5034f18a24cd9 (diff)
simplify slightly, remove accidental duplication
Diffstat (limited to 'vespaclient-java')
-rwxr-xr-xvespaclient-java/src/main/sh/vespa-visit.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/vespaclient-java/src/main/sh/vespa-visit.sh b/vespaclient-java/src/main/sh/vespa-visit.sh
index 1404cf5ab69..e4fec2857fe 100755
--- a/vespaclient-java/src/main/sh/vespa-visit.sh
+++ b/vespaclient-java/src/main/sh/vespa-visit.sh
@@ -74,24 +74,19 @@ findhost
# END environment bootstrap section
+Xmx="-Xmx1024m"
# Allow -Xmx to be specified in args
for arg in "$@"; do
shift
- if case $arg in -Xmx*) true;; *) false;; esac; then # portable if [string begins with]
- export Xmx=$arg
- else
- set -- "$@" "$arg"
- fi
+ case $arg in -Xmx*) Xmx=$arg ;;
+ *) set -- "$@" "$arg" ;;
+ esac
done
if [ "${VESPA_LOG_LEVEL}" = "" ]; then
export VESPA_LOG_LEVEL=error,warning
fi
-if [ "${VESPA_LOG_LEVEL}" = "" ]; then
- export VESPA_LOG_LEVEL=error,warning
-fi
-
export MALLOC_ARENA_MAX=1 # Does not need fast allocation
exec java \
-server -enableassertions \
@@ -99,5 +94,5 @@ exec java \
-XX:MaxJavaStackTraceDepth=1000000 \
-Djava.library.path=${VESPA_HOME}/libexec64/native:${VESPA_HOME}/lib64 \
-XX:MaxDirectMemorySize=32m -Djava.awt.headless=true \
--Xms128m -Xmx1024m $(getJavaOptionsIPV46) ${Xmx} \
+-Xms128m $(getJavaOptionsIPV46) ${Xmx} \
-cp ${VESPA_HOME}/lib/jars/vespaclient-java-jar-with-dependencies.jar com.yahoo.vespavisit.VdsVisit "$@"