update as.sh arthas-demo.jar arthas-boot.jar

This commit is contained in:
hengyunabc committed 2019-09-25 10:59:56 +08:00
1 parent 3ad47a3944
commit 7b3cec6b16
3 files changed
+16 -3

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+16 -3
View File
@@ -11,7 +11,7 @@
# date : 2019-09-19 # date : 2019-09-19
# current arthas script version # current arthas script version
ARTHAS_SCRIPT_VERSION=3.1.3 ARTHAS_SCRIPT_VERSION=3.1.4
# SYNOPSIS # SYNOPSIS
# rreadlink <fileOrDirPath> # rreadlink <fileOrDirPath>
@@ -133,6 +133,9 @@ TUNNEL_SERVER=
# agent id # agent id
AGENT_ID= AGENT_ID=
# stat report url
STAT_URL=
############ Command Arguments ############ ############ Command Arguments ############
# if arguments contains -c/--command or -f/--batch-file, BATCH_MODE will be true # if arguments contains -c/--command or -f/--batch-file, BATCH_MODE will be true
@@ -400,7 +403,7 @@ usage()
Usage: Usage:
$0 [-h] [--target-ip <value>] [--telnet-port <value>] $0 [-h] [--target-ip <value>] [--telnet-port <value>]
[--http-port <value>] [--session-timeout <value>] [--arthas-home <value>] [--http-port <value>] [--session-timeout <value>] [--arthas-home <value>]
[--tunnel-server <value>] [--agent-id <value>] [--tunnel-server <value>] [--agent-id <value>] [--stat-url <value>]
[--use-version <value>] [--repo-mirror <value>] [--versions] [--use-http] [--use-version <value>] [--repo-mirror <value>] [--versions] [--use-http]
[--attach-only] [-c <value>] [-f <value>] [-v] [pid] [--attach-only] [-c <value>] [-f <value>] [-v] [pid]
@@ -434,9 +437,10 @@ EXAMPLES:
./as.sh --telnet-port 9999 --http-port -1 ./as.sh --telnet-port 9999 --http-port -1
./as.sh --tunnel-server 'ws://192.168.10.11:7777/ws' ./as.sh --tunnel-server 'ws://192.168.10.11:7777/ws'
./as.sh --tunnel-server 'ws://192.168.10.11:7777/ws' --agent-id bvDOe8XbTM2pQWjF4cfw ./as.sh --tunnel-server 'ws://192.168.10.11:7777/ws' --agent-id bvDOe8XbTM2pQWjF4cfw
./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.1.3 ./as.sh --use-version 3.1.4
./as.sh --session-timeout 3600 ./as.sh --session-timeout 3600
./as.sh --attach-only ./as.sh --attach-only
./as.sh --repo-mirror aliyun --use-http ./as.sh --repo-mirror aliyun --use-http
@@ -539,6 +543,11 @@ parse_arguments()
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
--stat-url)
STAT_URL="$2"
shift # past argument
shift # past value
;;
--use-http) --use-http)
USE_HTTP=true USE_HTTP=true
shift # past argument shift # past argument
@@ -714,6 +723,10 @@ attach_jvm()
tempArgs+=("-agent-id") tempArgs+=("-agent-id")
tempArgs+=("${AGENT_ID}") tempArgs+=("${AGENT_ID}")
fi fi
if [ "${STAT_URL}" ]; then
tempArgs+=("-stat-url")
tempArgs+=("${STAT_URL}")
fi
"${java_command[@]}" \ "${java_command[@]}" \
${ARTHAS_OPTS} ${JVM_OPTS} \ ${ARTHAS_OPTS} ${JVM_OPTS} \