mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-12 22:41:26 +00:00
update doc
This commit is contained in:
1 parent
7033455774
commit
91290302d8
59 files changed
+1107
-68
No files matched your search
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
|
||||
@@ -3,9 +3,15 @@ Download
|
||||
|
||||
## Download full package
|
||||
|
||||
### Dwonload from maven central
|
||||
|
||||
Latest Version, Click To Download: [](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:
|
||||
|
||||
@@ -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
|
||||
```
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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> File path
|
||||
```
|
||||
Reference in new issue
Block a user