diff --git a/README.md b/README.md index 186bf5c27..ef59c0430 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Arthas was built to solve these issues. A developer can troubleshoot your produc Download`arthas-boot.jar`,Start with `java` command: ```bash -curl -O https://alibaba.github.io/arthas/arthas-boot.jar +curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar ``` @@ -69,7 +69,7 @@ java -jar arthas-boot.jar -h You can install Arthas with one single line command on Linux, Unix, and Mac. Copy the following command and paste it into the command line, then press *Enter* to run: ```bash -curl -L https://alibaba.github.io/arthas/install.sh | sh +curl -L https://arthas.aliyun.com/install.sh | sh ``` The command above will download the bootstrap script `as.sh` to the current directory. You can move it the any other place you want, or put its location in `$PATH`. @@ -80,15 +80,15 @@ You can enter its interactive interface by executing `as.sh`, or execute `as.sh ### Documentation * [Online Tutorials(Recommended)](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en) -* [User manual](https://alibaba.github.io/arthas/en) -* [Installation](https://alibaba.github.io/arthas/en/install-detail.html) -* [Download](https://alibaba.github.io/arthas/en/download.html) -* [Quick start](https://alibaba.github.io/arthas/en/quick-start.html) -* [Advanced usage](https://alibaba.github.io/arthas/en/advanced-use.html) -* [Commands](https://alibaba.github.io/arthas/en/commands.html) -* [WebConsole](https://alibaba.github.io/arthas/en/web-console.html) -* [Docker](https://alibaba.github.io/arthas/en/docker.html) -* [Arthas Spring Boot Starter](https://alibaba.github.io/arthas/en/spring-boot-starter.html) +* [User manual](https://arthas.aliyun.com/doc/en) +* [Installation](https://arthas.aliyun.com/doc/en/install-detail.html) +* [Download](https://arthas.aliyun.com/doc/en/download.html) +* [Quick start](https://arthas.aliyun.com/doc/en/quick-start.html) +* [Advanced usage](https://arthas.aliyun.com/doc/en/advanced-use.html) +* [Commands](https://arthas.aliyun.com/doc/en/commands.html) +* [WebConsole](https://arthas.aliyun.com/doc/en/web-console.html) +* [Docker](https://arthas.aliyun.com/doc/en/docker.html) +* [Arthas Spring Boot Starter](https://arthas.aliyun.com/doc/en/spring-boot-starter.html) * [User cases](https://github.com/alibaba/arthas/issues?q=label%3Auser-case) * [Questions and answers](https://github.com/alibaba/arthas/issues?utf8=%E2%9C%93&q=label%3Aquestion-answered+) * [Compile and debug/How to contribute](https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md) @@ -99,13 +99,13 @@ You can enter its interactive interface by executing `as.sh`, or execute `as.sh #### Dashboard -* https://alibaba.github.io/arthas/en/dashboard +* https://arthas.aliyun.com/doc/en/dashboard  #### Thread -* https://alibaba.github.io/arthas/en/thread +* https://arthas.aliyun.com/doc/en/thread See what is eating your CPU (ranked by top CPU usage) and what is going on there in one glance: @@ -138,7 +138,7 @@ $ thread -n 3 #### jad -* https://alibaba.github.io/arthas/en/jad +* https://arthas.aliyun.com/doc/en/jad Decompile your class with one shot: @@ -178,7 +178,7 @@ public interface Servlet { ``` #### mc -* https://alibaba.github.io/arthas/en/mc +* https://arthas.aliyun.com/doc/en/mc Memory compiler, compiles `.java` files into `.class` files in memory. @@ -188,7 +188,7 @@ mc /tmp/Test.java #### redefine -* https://alibaba.github.io/arthas/en/redefine +* https://arthas.aliyun.com/doc/en/redefine Load the external `*.class` files to re-define the loaded classes in JVM. @@ -199,7 +199,7 @@ redefine -c 327a647b /tmp/Test.class /tmp/Test\$Inner.class #### sc -* https://alibaba.github.io/arthas/en/sc +* https://arthas.aliyun.com/doc/en/sc Search any loaded class with detailed information. @@ -237,7 +237,7 @@ $ sc -d org.springframework.web.context.support.XmlWebApplicationContext #### stack -* https://alibaba.github.io/arthas/en/stack +* https://arthas.aliyun.com/doc/en/stack View the call stack of `test.arthas.TestStack#doGet`: @@ -274,7 +274,7 @@ ts=2018-09-18 10:11:45;thread_name=http-bio-8080-exec-10;id=d9;is_daemon=true;pr #### Trace -* https://alibaba.github.io/arthas/en/trace +* https://arthas.aliyun.com/doc/en/trace See what is slowing down your method invocation with trace command: @@ -282,7 +282,7 @@ See what is slowing down your method invocation with trace command: #### Watch -* https://alibaba.github.io/arthas/en/watch +* https://arthas.aliyun.com/doc/en/watch Watch the first parameter and thrown exception of `test.arthas.TestWatch#doGet` only if it throws exception. @@ -298,7 +298,7 @@ ts=2018-09-18 10:26:28;result=@ArrayList[ #### Monitor -* https://alibaba.github.io/arthas/en/monitor +* https://arthas.aliyun.com/doc/en/monitor Monitor a specific method invocation statistics, including total number of invocations, average response time, success rate, and every 5 seconds: @@ -321,7 +321,7 @@ Affect(class-cnt:1 , method-cnt:1) cost in 109 ms. #### Time Tunnel(tt) -* https://alibaba.github.io/arthas/en/tt +* https://arthas.aliyun.com/doc/en/tt Record method invocation data, so that you can check the method invocation parameters, returned value, and thrown exceptions later. It works as if you could come back and replay the past method invocation via time tunnel. @@ -344,7 +344,7 @@ Affect(class-cnt:1 , method-cnt:1) cost in 75 ms. #### Classloader -* https://alibaba.github.io/arthas/en/classloader +* https://arthas.aliyun.com/doc/en/classloader ```bash $ classloader @@ -363,14 +363,14 @@ $ classloader #### Web Console -* https://alibaba.github.io/arthas/en/web-console +* https://arthas.aliyun.com/doc/en/web-console  #### Profiler/FlameGraph -* https://alibaba.github.io/arthas/en/profiler +* https://arthas.aliyun.com/doc/en/profiler ```bash $ profiler start @@ -389,7 +389,7 @@ View profiler results under arthas-output via browser: #### Arthas Spring Boot Starter -* [Arthas Spring Boot Starter](https://alibaba.github.io/arthas/spring-boot-starter.html) +* [Arthas Spring Boot Starter](https://arthas.aliyun.com/doc/spring-boot-starter.html) ### Known Users diff --git a/README_CN.md b/README_CN.md index 2cfd4dc1a..829802c05 100644 --- a/README_CN.md +++ b/README_CN.md @@ -40,7 +40,7 @@ English version goes [here](README.md). 下载`arthas-boot.jar`,然后用`java -jar`的方式启动: ```bash -curl -O https://alibaba.github.io/arthas/arthas-boot.jar +curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar ``` @@ -57,7 +57,7 @@ java -jar arthas-boot.jar -h Arthas 支持在 Linux/Unix/Mac 等平台上一键安装,请复制以下内容,并粘贴到命令行中,敲 `回车` 执行即可: ```bash -curl -L https://alibaba.github.io/arthas/install.sh | sh +curl -L https://arthas.aliyun.com/install.sh | sh ``` 上述命令会下载启动脚本文件 `as.sh` 到当前目录,你可以放在任何地方或将其加入到 `$PATH` 中。 @@ -69,20 +69,20 @@ curl -L https://alibaba.github.io/arthas/install.sh | sh ### 文档 * [在线教程(推荐)](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=cn) -* [用户文档](https://alibaba.github.io/arthas/) -* [安装](https://alibaba.github.io/arthas/install-detail.html) -* [下载](https://alibaba.github.io/arthas/download.html) -* [快速入门](https://alibaba.github.io/arthas/quick-start.html) -* [进阶使用](https://alibaba.github.io/arthas/advanced-use.html) -* [命令列表](https://alibaba.github.io/arthas/commands.html) -* [WebConsole](https://alibaba.github.io/arthas/web-console.html) -* [Docker](https://alibaba.github.io/arthas/docker.html) -* [Arthas Spring Boot Starter](https://alibaba.github.io/arthas/spring-boot-starter.html) +* [用户文档](https://arthas.aliyun.com/doc/) +* [安装](https://arthas.aliyun.com/doc/install-detail.html) +* [下载](https://arthas.aliyun.com/doc/download.html) +* [快速入门](https://arthas.aliyun.com/doc/quick-start.html) +* [进阶使用](https://arthas.aliyun.com/doc/advanced-use.html) +* [命令列表](https://arthas.aliyun.com/doc/commands.html) +* [WebConsole](https://arthas.aliyun.com/doc/web-console.html) +* [Docker](https://arthas.aliyun.com/doc/docker.html) +* [Arthas Spring Boot Starter](https://arthas.aliyun.com/doc/spring-boot-starter.html) * [用户案例](https://github.com/alibaba/arthas/issues?q=label%3Auser-case) * [常见问题](https://github.com/alibaba/arthas/issues?utf8=%E2%9C%93&q=label%3Aquestion-answered+) * [编译调试/参与贡献](https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md) * [Release Notes](https://github.com/alibaba/arthas/releases) -* [QQ群/钉钉群](https://alibaba.github.io/arthas/contact-us.html) +* [QQ群/钉钉群](https://arthas.aliyun.com/doc/contact-us.html) Gitee文档镜像: https://arthas.gitee.io/ @@ -90,13 +90,13 @@ Gitee文档镜像: https://arthas.gitee.io/ #### Dashboard -* https://alibaba.github.io/arthas/dashboard +* https://arthas.aliyun.com/doc/dashboard  #### Thread -* https://alibaba.github.io/arthas/thread +* https://arthas.aliyun.com/doc/thread 一目了然的了解系统的状态,哪些线程比较占cpu?他们到底在做什么? @@ -129,7 +129,7 @@ $ thread -n 3 #### jad -* https://alibaba.github.io/arthas/jad +* https://arthas.aliyun.com/doc/jad 对类进行反编译: @@ -169,7 +169,7 @@ public interface Servlet { ``` #### mc -* https://alibaba.github.io/arthas/mc +* https://arthas.aliyun.com/doc/mc Memory Compiler/内存编译器,编译`.java`文件生成`.class`。 @@ -178,7 +178,7 @@ mc /tmp/Test.java ``` #### redefine -* https://alibaba.github.io/arthas/redefine +* https://arthas.aliyun.com/doc/redefine 加载外部的`.class`文件,redefine jvm已加载的类。 @@ -188,7 +188,7 @@ redefine -c 327a647b /tmp/Test.class /tmp/Test\$Inner.class ``` #### sc -* https://alibaba.github.io/arthas/sc +* https://arthas.aliyun.com/doc/sc 查找JVM中已经加载的类 @@ -226,7 +226,7 @@ $ sc -d org.springframework.web.context.support.XmlWebApplicationContext #### stack -* https://alibaba.github.io/arthas/stack +* https://arthas.aliyun.com/doc/stack 查看方法 `test.arthas.TestStack#doGet` 的调用堆栈: @@ -263,7 +263,7 @@ ts=2018-09-18 10:11:45;thread_name=http-bio-8080-exec-10;id=d9;is_daemon=true;pr #### Trace -* https://alibaba.github.io/arthas/trace +* https://arthas.aliyun.com/doc/trace 观察方法执行的时候哪个子调用比较慢: @@ -271,7 +271,7 @@ ts=2018-09-18 10:11:45;thread_name=http-bio-8080-exec-10;id=d9;is_daemon=true;pr #### Watch -* https://alibaba.github.io/arthas/watch +* https://arthas.aliyun.com/doc/watch 观察方法 `test.arthas.TestWatch#doGet` 执行的入参,仅当方法抛出异常时才输出。 @@ -287,7 +287,7 @@ ts=2018-09-18 10:26:28;result=@ArrayList[ #### Monitor -* https://alibaba.github.io/arthas/monitor +* https://arthas.aliyun.com/doc/monitor 监控某个特殊方法的调用统计数据,包括总调用次数,平均rt,成功率等信息,每隔5秒输出一次。 @@ -311,7 +311,7 @@ Affect(class-cnt:1 , method-cnt:1) cost in 109 ms. #### Time Tunnel(tt) -* https://alibaba.github.io/arthas/tt +* https://arthas.aliyun.com/doc/tt 记录方法调用信息,支持事后查看方法调用的参数,返回值,抛出的异常等信息,仿佛穿越时空隧道回到调用现场一般。 @@ -334,7 +334,7 @@ Affect(class-cnt:1 , method-cnt:1) cost in 75 ms. #### Classloader -* https://alibaba.github.io/arthas/classloader +* https://arthas.aliyun.com/doc/classloader 了解当前系统中有多少类加载器,以及每个加载器加载的类数量,帮助您判断是否有类加载器泄露。 @@ -355,13 +355,13 @@ $ classloader #### Web Console -* https://alibaba.github.io/arthas/web-console +* https://arthas.aliyun.com/doc/web-console  #### Profiler/FlameGraph/火焰图 -* https://alibaba.github.io/arthas/profiler +* https://arthas.aliyun.com/doc/profiler ```bash $ profiler start @@ -380,7 +380,7 @@ OK #### Arthas Spring Boot Starter -* [Arthas Spring Boot Starter](https://alibaba.github.io/arthas/spring-boot-starter.html) +* [Arthas Spring Boot Starter](https://arthas.aliyun.com/doc/spring-boot-starter.html) ### Known Users diff --git a/bin/as.sh b/bin/as.sh index 1aaac22fd..43a75385b 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# WIKI: https://alibaba.github.io/arthas +# WIKI: https://arthas.aliyun.com/doc # This script only supports bash, do not support posix sh. # If you have the problem like Syntax error: "(" unexpected (expecting "fi"), # Try to run "bash -version" to check the version. @@ -450,7 +450,7 @@ EXAMPLES: ./as.sh --select arthas-demo ./as.sh --repo-mirror aliyun --use-http WIKI: - https://alibaba.github.io/arthas + https://arthas.aliyun.com/doc Here is the list of possible java process(es) to attatch: " diff --git a/bin/install.sh b/bin/install.sh index e2c77ba60..656e11ec7 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -10,7 +10,7 @@ TARGET_ARTHAS_FILE="./as.sh" SO_TIMEOUT=60 # default downloading url -ARTHAS_FILE_URL="https://alibaba.github.io/arthas/as.sh" +ARTHAS_FILE_URL="https://arthas.aliyun.com/as.sh" # exit shell with err_code # $1 : err_code diff --git a/boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java b/boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java index 51d1223f2..1891cd98a 100644 --- a/boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java +++ b/boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java @@ -57,7 +57,7 @@ import static com.taobao.arthas.boot.ProcessUtils.STATUS_EXEC_TIMEOUT; + " java -jar arthas-boot.jar --select arthas-demo\n" + " java -jar arthas-boot.jar --session-timeout 3600\n" + " java -jar arthas-boot.jar --attach-only\n" + " java -jar arthas-boot.jar --repo-mirror aliyun --use-http\n" + "WIKI:\n" - + " https://alibaba.github.io/arthas\n") + + " https://arthas.aliyun.com/doc\n") public class Bootstrap { private static final int DEFAULT_TELNET_PORT = 3658; private static final int DEFAULT_HTTP_PORT = 8563; diff --git a/core/src/main/java/com/taobao/arthas/core/Arthas.java b/core/src/main/java/com/taobao/arthas/core/Arthas.java index 45f15d7d6..901e3f364 100644 --- a/core/src/main/java/com/taobao/arthas/core/Arthas.java +++ b/core/src/main/java/com/taobao/arthas/core/Arthas.java @@ -57,7 +57,7 @@ public class Arthas { if (commandLine.getOptionValue("target-ip") == null) { throw new IllegalStateException("as.sh is too old to support web console, " + "please run the following command to upgrade to latest version:" + - "\ncurl -sLk https://alibaba.github.io/arthas/install.sh | sh"); + "\ncurl -sLk https://arthas.aliyun.com/install.sh | sh"); } configure.setIp((String) commandLine.getOptionValue("target-ip")); configure.setTelnetPort((Integer) commandLine.getOptionValue("telnet-port")); diff --git a/core/src/main/java/com/taobao/arthas/core/command/Constants.java b/core/src/main/java/com/taobao/arthas/core/command/Constants.java index 3cb018bc4..9ba9e1407 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/Constants.java +++ b/core/src/main/java/com/taobao/arthas/core/command/Constants.java @@ -25,7 +25,7 @@ public interface Constants { String WIKI = "\nWIKI:\n"; - String WIKI_HOME = " https://alibaba.github.io/arthas/"; + String WIKI_HOME = " https://arthas.aliyun.com/doc/"; String EXPRESS_EXAMPLES = "Examples:\n" + " params\n" + diff --git a/core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java b/core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java index 0f5eeaf78..91e62f428 100644 --- a/core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java +++ b/core/src/main/java/com/taobao/arthas/core/util/ArthasBanner.java @@ -23,7 +23,7 @@ public class ArthasBanner { private static final String LOGO_LOCATION = "/com/taobao/arthas/core/res/logo.txt"; private static final String CREDIT_LOCATION = "/com/taobao/arthas/core/res/thanks.txt"; private static final String VERSION_LOCATION = "/com/taobao/arthas/core/res/version"; - private static final String WIKI = "https://alibaba.github.io/arthas"; + private static final String WIKI = "https://arthas.aliyun.com/doc"; private static final String TUTORIALS = "https://arthas.aliyun.com/doc/arthas-tutorials.html"; private static String LOGO = "Welcome to Arthas"; diff --git a/core/src/main/resources/com/taobao/arthas/core/http/index.html b/core/src/main/resources/com/taobao/arthas/core/http/index.html index 3c22bb287..db75acae1 100644 --- a/core/src/main/resources/com/taobao/arthas/core/http/index.html +++ b/core/src/main/resources/com/taobao/arthas/core/http/index.html @@ -44,7 +44,7 @@