mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 15:33:59 +00:00
fix as.sh jdk11 support
This commit is contained in:
1 parent
58394dc804
commit
7f89c8c290
1 file changed
+2
-1
@@ -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} \
|
||||
|
||||
Reference in new issue
Block a user