diff --git a/en/README.html b/en/README.html index 13888fe4e..c357f84af 100644 --- a/en/README.html +++ b/en/README.html @@ -230,7 +230,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/_sources/advanced-use.md.txt b/en/_sources/advanced-use.md.txt index 8cedf89ec..a5c1fbf4b 100644 --- a/en/_sources/advanced-use.md.txt +++ b/en/_sources/advanced-use.md.txt @@ -7,13 +7,14 @@ Advanced Usage * cls - clear the screen * [cat](cat.md) - Concatenate and print files * [grep](grep.md) - Pattern searcher +* [tee](tee.md) - Copies standard input to standard output, making a copy in zero or more files. * [pwd](pwd.md) - Return working directory name * session - display current session information -* [reset](reset.md) - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by `stop/shutdown` +* [reset](reset.md) - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by `stop` * version - print the version for the Arthas attached to the current Java process * history - view command history * quit/exit - exit the current Arthas session, without effecting other sessions -* stop/shutdown - terminate the Arthas server, all Arthas sessions will be destroyed +* stop - terminate the Arthas server, all Arthas sessions will be destroyed * [keymap](keymap.md) - keymap for Arthas keyboard shortcut ## JVM @@ -24,6 +25,7 @@ Advanced Usage * [sysprop](sysprop.md) - view/modify system properties * [sysenv](sysenv.md) — view system environment variables * [vmoption](vmoption.md) - view/modify the vm diagnostic options. +* [perfcounter](perfcounter.md) - show JVM Perf Counter information * [logger](logger.md) - print the logger information, update the logger level * [getstatic](getstatic.md) - examine class's static properties * [ognl](ognl.md) - execute ongl expression diff --git a/en/_sources/commands.md.txt b/en/_sources/commands.md.txt index 98d017fdc..f3c689d46 100644 --- a/en/_sources/commands.md.txt +++ b/en/_sources/commands.md.txt @@ -7,6 +7,7 @@ All Commands * [sysprop](sysprop.md) * [sysenv](sysenv.md) * [vmoption](vmoption.md) +* [perfcounter](perfcounter.md) * [logger](logger.md) * [mbean](mbean.md) * [getstatic](getstatic.md) @@ -33,6 +34,7 @@ All Commands * [cat](cat.md) * [grep](grep.md) +* [tee](tee.md) * [pwd](pwd.md) * [options](options.md) @@ -46,8 +48,7 @@ All Commands * version - print out Arthas's version * history - view command history * quit - exit the current Arthas client without affecting other clients -* stop - the same as `shutdown` command -* shutdown - terminate the Arthas server, all the Arthas clients connecting to this server will be disconnected +* stop - terminate the Arthas server, all the Arthas clients connecting to this server will be disconnected * [keymap](keymap.md) - list all Arthas keyboard shortcuts and shortcut customizations. diff --git a/en/_sources/download.md.txt b/en/_sources/download.md.txt index 004006c5b..9ee6ae54a 100644 --- a/en/_sources/download.md.txt +++ b/en/_sources/download.md.txt @@ -3,9 +3,15 @@ Download ## Download full package +### Dwonload from maven central + Latest Version, Click To Download: [![](https://img.shields.io/maven-central/v/com.taobao.arthas/arthas-packaging.svg?style=flat-square "Arthas")](http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.taobao.arthas&a=arthas-packaging&e=zip&c=bin&v=LATEST) +### Download from Github Releases + +[https://github.com/alibaba/arthas/releases](https://github.com/alibaba/arthas/releases) + ### Use as.sh Download and unzip, find `as.sh` in the directory. Start it in bash: diff --git a/en/_sources/perfcounter.md.txt b/en/_sources/perfcounter.md.txt new file mode 100644 index 000000000..b6b5faa04 --- /dev/null +++ b/en/_sources/perfcounter.md.txt @@ -0,0 +1,40 @@ +perfcounter +=== + +> Check the current JVM Perf Counter information. + +### Usage + +``` +$ perfcounter + java.ci.totalTime 2325637411 + java.cls.loadedClasses 3403 + java.cls.sharedLoadedClasses 0 + java.cls.sharedUnloadedClasses 0 + java.cls.unloadedClasses 0 + java.property.java.version 11.0.4 + java.property.java.vm.info mixed mode + java.property.java.vm.name OpenJDK 64-Bit Server VM +... +``` + +Print more information with the `-d` option: + +``` +$ perfcounter -d + Name Variability Units Value +--------------------------------------------------------------------------------- + java.ci.totalTime Monotonic Ticks 3242526906 + java.cls.loadedClasses Monotonic Events 3404 + java.cls.sharedLoadedClasses Monotonic Events 0 + java.cls.sharedUnloadedClasses Monotonic Events 0 + java.cls.unloadedClasses Monotonic Events 0 +``` + +### JVM above JDK9 + +If the information is not printed, when the application starts, add the following parameters: + +``` +--add-opens java.base/jdk.internal.perf=ALL-UNNAMED --add-exports java.base/jdk.internal.perf=ALL-UNNAMED +``` \ No newline at end of file diff --git a/en/_sources/reset.md.txt b/en/_sources/reset.md.txt index ebdec1b03..2749d9cd6 100644 --- a/en/_sources/reset.md.txt +++ b/en/_sources/reset.md.txt @@ -1,7 +1,7 @@ reset === -> Reset all classes that have been enhanced by Arthas. These enhanced classes will also be reset when Arthas server is `stop/shutdown`. +> Reset all classes that have been enhanced by Arthas. These enhanced classes will also be reset when Arthas server is `stop`. ### Usage diff --git a/en/_sources/tee.md.txt b/en/_sources/tee.md.txt new file mode 100644 index 000000000..771871c7b --- /dev/null +++ b/en/_sources/tee.md.txt @@ -0,0 +1,25 @@ +tee +=== + +> Similar to the traditional `tee` command. + + +``` + USAGE: + tee [-a] [-h] [file] + + SUMMARY: + tee command for pipes. + + EXAMPLES: + sysprop | tee /path/to/logfile | grep java + sysprop | tee -a /path/to/logfile | grep java + + WIKI: + https://alibaba.github.io/arthas/tee + + OPTIONS: + -a, --append Append to file + -h, --help this help + File path +``` \ No newline at end of file diff --git a/en/advanced-use.html b/en/advanced-use.html index d14842afc..de6a20488 100644 --- a/en/advanced-use.html +++ b/en/advanced-use.html @@ -202,13 +202,14 @@
  • cls - clear the screen

  • cat - Concatenate and print files

  • grep - Pattern searcher

  • +
  • tee - Copies standard input to standard output, making a copy in zero or more files.

  • pwd - Return working directory name

  • session - display current session information

  • -
  • reset - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by stop/shutdown

  • +
  • reset - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by stop

  • version - print the version for the Arthas attached to the current Java process

  • history - view command history

  • quit/exit - exit the current Arthas session, without effecting other sessions

  • -
  • stop/shutdown - terminate the Arthas server, all Arthas sessions will be destroyed

  • +
  • stop - terminate the Arthas server, all Arthas sessions will be destroyed

  • keymap - keymap for Arthas keyboard shortcut

  • @@ -221,6 +222,7 @@
  • sysprop - view/modify system properties

  • sysenv — view system environment variables

  • vmoption - view/modify the vm diagnostic options.

  • +
  • perfcounter - show JVM Perf Counter information

  • logger - print the logger information, update the logger level

  • getstatic - examine class’s static properties

  • ognl - execute ongl expression

  • @@ -382,7 +384,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/advice-class.html b/en/advice-class.html index a87a9c8c7..15b69f967 100644 --- a/en/advice-class.html +++ b/en/advice-class.html @@ -104,6 +104,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -133,6 +134,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • Basic Arthas Commands
  • @@ -359,7 +361,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/async.html b/en/async.html index 95aeb66e7..06deceee3 100644 --- a/en/async.html +++ b/en/async.html @@ -341,7 +341,12 @@ cache location : /Users/gehui/logs/arthas-cache/28198/2 var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/batch-support.html b/en/batch-support.html index db1e3bb1d..f11d7f074 100644 --- a/en/batch-support.html +++ b/en/batch-support.html @@ -300,7 +300,12 @@ sc -d org.apache.commons.lang.StringUtils var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/cat.html b/en/cat.html index ecc619822..682b25b1e 100644 --- a/en/cat.html +++ b/en/cat.html @@ -104,6 +104,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -124,6 +125,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • Basic Arthas Commands
  • @@ -281,7 +283,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/classloader.html b/en/classloader.html index d7ac1fbda..8de371ec4 100644 --- a/en/classloader.html +++ b/en/classloader.html @@ -104,6 +104,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -136,6 +137,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • Basic Arthas Commands
  • @@ -409,7 +411,12 @@ load class success. var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/commands.html b/en/commands.html index caa0fee7f..0848c0263 100644 --- a/en/commands.html +++ b/en/commands.html @@ -104,6 +104,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -124,6 +125,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • Basic Arthas Commands
  • @@ -212,6 +214,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -232,6 +235,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • @@ -246,8 +250,7 @@
  • version - print out Arthas’s version

  • history - view command history

  • quit - exit the current Arthas client without affecting other clients

  • -
  • stop - the same as shutdown command

  • -
  • shutdown - terminate the Arthas server, all the Arthas clients connecting to this server will be disconnected

  • +
  • stop - terminate the Arthas server, all the Arthas clients connecting to this server will be disconnected

  • keymap - list all Arthas keyboard shortcuts and shortcut customizations.

  • @@ -321,7 +324,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/dashboard.html b/en/dashboard.html index a7a424d5a..a85bdcc70 100644 --- a/en/dashboard.html +++ b/en/dashboard.html @@ -109,6 +109,7 @@
  • sysprop
  • sysenv
  • vmoption
  • +
  • perfcounter
  • logger
  • mbean
  • getstatic
  • @@ -129,6 +130,7 @@
  • profiler
  • cat
  • grep
  • +
  • tee
  • pwd
  • options
  • Basic Arthas Commands
  • @@ -341,7 +343,12 @@ uptime 16020s busy var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/docker.html b/en/docker.html index 621998438..9a1e80a1c 100644 --- a/en/docker.html +++ b/en/docker.html @@ -300,7 +300,12 @@ COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); diff --git a/en/download.html b/en/download.html index d6a49bbff..b193acdc6 100644 --- a/en/download.html +++ b/en/download.html @@ -96,6 +96,8 @@
  • Installation
  • Download