From 7f89c8c290fb97a5e23890ff10c2a16953073770 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Thu, 18 Oct 2018 17:21:30 +0800 Subject: [PATCH] fix as.sh jdk11 support --- bin/as.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/as.sh b/bin/as.sh index 65d9add0d..383cbce41 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -409,9 +409,10 @@ attach_jvm() echo "Attaching to ${TARGET_PID} using version ${1}..." + local opts="${ARTHAS_OPTS} ${BOOT_CLASSPATH} ${JVM_OPTS}" if [ ${TARGET_IP} = ${DEFAULT_TARGET_IP} ]; then "${JAVA_HOME}"/bin/java \ - ${ARTHAS_OPTS} "${BOOT_CLASSPATH}" ${JVM_OPTS} \ + ${opts} \ -jar "${arthas_lib_dir}/arthas-core.jar" \ -pid ${TARGET_PID} \ -target-ip ${TARGET_IP} \