fix typos in advance use en

This commit is contained in:
Hearen committed 2018-09-22 12:20:50 +08:00
1 parent 6fc0a5bc84
commit 1ad373529a
1 file changed
+21 -24
+21 -24
View File
@@ -3,40 +3,40 @@ Advanced Usage
## Basic ## Basic
- help - help - show help info
- cls - clear out the current screen - cls - clear out the current screen
- session - check details of the current session - session - check details of the current session
- [reset](reset.md) - reset all empowered classes - [reset](reset.md) - reset all injected/enhanced classes
- version - print the version of the Arthas attaching to the current target process - version - print the version of the Arthas attaching to the current target process
- quit/exit - exit the current Arthas client without affecting other clients - quit/exit - exit the current Arthas client without affecting other clients
- shutdown - terminate the Arthas server and all clients - shutdown - terminate the Arthas server and all clients
## JVM-related ## JVM
* [dashboard](dashboard.md) - real-time dashboard for the current system * [dashboard](dashboard.md) - real-time dashboard for the current system
* [thread](thread.md) - thread profile * [thread](thread.md) - thread profile
* [jvm](jvm.md) - JVM profile * [jvm](jvm.md) - JVM profile
* [sysprop](sysprop.md) - check or modify JVM system properties * [sysprop](sysprop.md) - check or modify JVM system properties
* **New!** [getstatic](getstatic.md) - check the static properties of some class * **New!** [getstatic](getstatic.md) :clap: - check the static properties of classes
## class/classloader - related ## class/classloader
* [sc](sc.md) - methods' profile of the classes loaded by JVM * [sc](sc.md) - check profiles of the classes loaded by JVM
* [sm](sm.md) - methods' profile of the loaded classes * [sm](sm.md) - check methods' profile
* [dump](dump.md) - dump out the byte code of the loaded class to specified location * [dump](dump.md) - dump out the byte code of the loaded classes to specified location
* [redefine](redefine.md) - load external `*.class` files and re-define the JVM * [redefine](redefine.md) - load external `*.class` files and re-define the JVM-loaded classes
* [jad](jad.md) - de-compile the specified loaded classes * [jad](jad.md) - de-compile the specified loaded classes
* [classloader](classloader.md) - check the inheritance structure, urls, class loading info of class cloader; using classloader to getResource * [classloader](classloader.md) - check the inheritance structure, urls, class loading info of class cloader; using classloader to get the url of the resource e.g. `java/lang/String.class`
## monitor/watch/trace - related ## monitor/watch/trace - related
> **Attention**: commands here are taking advantage of `byte code injection`, which means we are using [AOP](https://en.wikipedia.org/wiki/Aspect-oriented_programming) to monitor and analyze the classes. So when using it for online troubleshooting, you'd better *explicitly specifically* specify the classes and also remember to remove the injected code by `shutdown` or `reset` (for specific classes). > **Attention**: commands here are taking advantage of `byte code injection`, which means we are using [AOP](https://en.wikipedia.org/wiki/Aspect-oriented_programming) to monitor and analyze the classes. So when using it for online troubleshooting, you'd better *explicitly specifically* specify the classes and also remember to remove the injected code by `shutdown` or `reset`.
* [monitor](monitor.md) * [monitor](monitor.md) - monitor the `class-pattern` & `method-pattern` matched methods' invoking traces
* [watch](watch.md) * [watch](watch.md) - watch/monitor methods in data aspect including `return values`, `exceptions` and `parameters`
* [trace](trace.md) - track the call stack trace and collect the time cost for each method call * [trace](trace.md) - track the method calling trace along with the time cost for each call
* [stack](stack.md) - print the call stack trace of the current method * [stack](stack.md) - print the call stack trace of the current method in a persistent way
* [tt](tt.md) - record the arguments and returned value for the methods, history included * [tt](tt.md) - record the arguments and returned value for the methods, history included
## options ## options
@@ -48,13 +48,15 @@ Advanced Usage
`pipe` is supported in Arthas, e.g. `sm org.apache.log4j.Logger | grep <init>` `pipe` is supported in Arthas, e.g. `sm org.apache.log4j.Logger | grep <init>`
* grep Commands supported in `pipe`:
* grep - filtering
* plaintext - remove the color * plaintext - remove the color
* wc * wc - line counting
## async in background ## async in background
[async](async.md) will be a great help, when the `incident` seldom occurs and you are `[watch](watch.md)`ing it. [async](async.md) will be a great help, when the `incident` seldom occurs and you are [`watch`](watch.md)ing it.
* jobs - list all jobs * jobs - list all jobs
@@ -63,14 +65,9 @@ Advanced Usage
* bg - put the paused job to the background * bg - put the paused job to the background
* tips - a) use `>` to redirect the output; b) use `&` to put the job to the background; c) disconnecting the session will not influence the job (the default life is 1 day) * tips - a) use `>` to redirect the output; b) use `&` to put the job to the background; c) disconnecting the session will not influence the job (the default life is 1 day)
## Web Console
Using websocket to connect Arthas
* [Web Console](web-console.md)
## Others ## Others
* [Web Console](web-console.md) - using websocket to connect Arthas
* [log the output](save-log.md) * [log the output](save-log.md)
* [batch](batch-support.md) * [batch](batch-support.md)
* [how to use ognl](https://github.com/alibaba/arthas/issues/11) * [how to use ognl](https://github.com/alibaba/arthas/issues/11)