This commit is contained in:
hengyunabc committed 2020-07-24 16:59:12 +08:00
1 parent 292bdc9669
commit b705d4af40
3 files changed
+4 -4

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+4 -4
View File
@@ -8,10 +8,10 @@
# program : Arthas # program : Arthas
# author : Core Engine @ Taobao.com # author : Core Engine @ Taobao.com
# date : 2020-06-29 # date : 2020-07-24
# current arthas script version # current arthas script version
ARTHAS_SCRIPT_VERSION=3.3.6 ARTHAS_SCRIPT_VERSION=3.3.7
# SYNOPSIS # SYNOPSIS
# rreadlink <fileOrDirPath> # rreadlink <fileOrDirPath>
@@ -444,7 +444,7 @@ EXAMPLES:
./as.sh --stat-url 'http://192.168.10.11:8080/api/stat' ./as.sh --stat-url 'http://192.168.10.11:8080/api/stat'
./as.sh -c 'sysprop; thread' <pid> ./as.sh -c 'sysprop; thread' <pid>
./as.sh -f batch.as <pid> ./as.sh -f batch.as <pid>
./as.sh --use-version 3.3.6 ./as.sh --use-version 3.3.7
./as.sh --session-timeout 3600 ./as.sh --session-timeout 3600
./as.sh --attach-only ./as.sh --attach-only
./as.sh --select arthas-demo ./as.sh --select arthas-demo
@@ -677,7 +677,7 @@ parse_arguments()
local IFS=$'\n' local IFS=$'\n'
CANDIDATES=($(call_jps | grep -v sun.tools.jps.Jps | grep "${SELECT}" | awk '{print $0}')) CANDIDATES=($(call_jps | grep -v sun.tools.jps.Jps | grep "${SELECT}" | awk '{print $0}'))
if [ ${#CANDIDATES[@]} -eq 1 ]; then if [ ${#CANDIDATES[@]} -eq 1 ]; then
TARGET_PID=${CANDIDATES[0]} TARGET_PID=`echo ${CANDIDATES[0]} | cut -d ' ' -f 1`
fi fi
fi fi