update doc

This commit is contained in:
hengyunabc committed 2021-01-04 20:03:39 +08:00
1 parent 663e7090eb
commit 6e8b832093
133 files changed
+1037 -270

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
## FAQ
> For questions that are not in this list, please search in issues. [https://github.com/alibaba/arthas/issues](https://github.com/alibaba/arthas/issues)
##### How much impact does Arthas attach have on the performance of the original process?
[https://github.com/alibaba/arthas/issues/44](https://github.com/alibaba/arthas/issues/44)
##### How to view the result in `json` format
```bash
options json-format true
```
See more at [options](options.md)
##### Can arthas trace native methods
No.
##### Can arthas view the value of a variable in memory?
No. But you can use some tricks to intercept the object with the `tt` command, or fetch it from a static method.
+2 -2
View File
@@ -53,8 +53,8 @@ Contents
* [Arthas Spring Boot Starter](spring-boot-starter.md)
* [IDEA Plugin](idea-plugin.md)
* [User cases](https://github.com/alibaba/arthas/issues?q=label%3Auser-case)
* [Questions and answers](https://github.com/alibaba/arthas/issues?q=label%3Aquestion-answered)
* [Fork me at GitHub](https://github.com/alibaba/arthas)
* [FAQ](faq.md)
* [Star me at GitHub](https://github.com/alibaba/arthas)
* [Compile and debug/CONTRIBUTING](https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#)
* [Release Notes](https://github.com/alibaba/arthas/releases)
* [Contact us](contact-us.md)
+13 -2
View File
@@ -33,10 +33,11 @@ Many times what we are interested is the exact trace result when the method call
### Notice
`trace` is handy to help discovering and locating the performance flaws in your system, but pls. note Arthas can only trace the first level method call each time.
* `trace` is handy to help discovering and locating the performance flaws in your system, but pls. note Arthas can only trace the first level method call each time.
* After version 3.3.0, you can use the Dynamic Trace feature to add new matching classes/methods, see the following example.
After version 3.3.0, you can use the Dynamic Trace feature to add new matching classes/methods, see the following example.
* Currently `trace java.lang.Thread getName` is not supported, please refer to issue: [#1610](https://github.com/alibaba/arthas/issues/1610), considering that it is not very necessary and it is difficult to repair , So it won’t be fixed for now
### Usage
@@ -142,6 +143,16 @@ Trace -E com.test.ClassA|org.test.ClassB method1|method2|method3
```
#### Exclude the specified class
> The watch/trace/monitor/stack/tt commands all support the `--exclude-class-pattern` parameter
Use the `--exclude-class-pattern` parameter to exclude the specified class, for example:
```bash
watch javax.servlet.Filter * --exclude-class-pattern com.demo.TestFilter
```
#### Dynamic trace
> Supported since version 3.3.0.
+18
View File
@@ -236,6 +236,24 @@ ts=2018-12-03 20:04:35; [cost=0.961441ms] result=@Integer[8]
```
#### Exclude the specified class
> The watch/trace/monitor/stack/tt commands all support the `--exclude-class-pattern` parameter
Use the `--exclude-class-pattern` parameter to exclude the specified class, for example:
```bash
watch javax.servlet.Filter * --exclude-class-pattern com.demo.TestFilter
```
#### Does not match subclass
By default, the watch/trace/monitor/stack/tt commands will match subclass. If you don't want to match, you can turn it off.
```bash
options disable-sub-class true
```
#### Use the -v parameter to print more information
> The watch/trace/monitor/stack/tt commands all support the `-v` parameter.