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
eacde51a7d
commit
dd9c84a044
52 files changed
+641
-136
No files matched your search
@@ -22,8 +22,9 @@ Advanced Usage
|
||||
* [jvm](jvm.md) - show JVM information
|
||||
* [sysprop](sysprop.md) - view/modify system properties
|
||||
* [sysenv](sysenv.md) — view system environment variables
|
||||
* **New!** [getstatic](getstatic.md) - examine class's static properties
|
||||
* [getstatic](getstatic.md) - examine class's static properties
|
||||
* **New!** [ognl](ognl.md) - execute ongl expression
|
||||
* **New!** [mbean](mbean.md) - show Mbean information
|
||||
|
||||
## class/classloader
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ All Commands
|
||||
* [jvm](jvm.md)
|
||||
* [sysprop](sysprop.md)
|
||||
* [sysenv](sysenv.md)
|
||||
* [mbean](mbean.md)
|
||||
* [getstatic](getstatic.md)
|
||||
|
||||
* [ognl](ognl.md)
|
||||
|
||||
@@ -59,6 +59,19 @@ Download and unzip, then find `as.bat` from 'bin' directory. For now this script
|
||||
as.bat <pid>
|
||||
```
|
||||
|
||||
If you want to diagnose Java process run as windows service, try these commands:
|
||||
|
||||
```bash
|
||||
as-service.bat -port <port>
|
||||
as-service.bat -pid <pid>
|
||||
as-service.bat -pid <pid> --interact
|
||||
```
|
||||
|
||||
Use this command to remove arthas service:
|
||||
```bash
|
||||
as-service.bat -remove
|
||||
```
|
||||
|
||||
## Manual command line startup
|
||||
|
||||
If you fail to boot Arthas with the provided batch file, you could try to assemble the bootstrap command in the following way.
|
||||
@@ -99,4 +112,4 @@ If you fail to boot Arthas with the provided batch file, you could try to assemb
|
||||
|
||||
```bash
|
||||
telnet 127.0.0.1 3658
|
||||
```
|
||||
```
|
||||
@@ -0,0 +1,64 @@
|
||||
mbean
|
||||
=======
|
||||
|
||||
> show Mbean information
|
||||
|
||||
This command can show or monitor Mbean attribute information.
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name|Specification|
|
||||
|---:|:---|
|
||||
|*name-pattern*|pattern for the Mbean name|
|
||||
|*attribute-pattern*|pattern for the attribute name|
|
||||
|[m]|show meta information|
|
||||
|[i:]|specify the interval to refresh attribute value (ms)|
|
||||
|[n:]|execution times|
|
||||
|[E]|turn on regex matching while the default mode is wildcard matching. Only effect on the attribute name|
|
||||
|
||||
### Usage
|
||||
|
||||
show all Mbean names:
|
||||
|
||||
```bash
|
||||
mbean
|
||||
```
|
||||
|
||||
show meta data of Mbean:
|
||||
|
||||
```bash
|
||||
mbean -m java.lang:type=Threading
|
||||
```
|
||||
|
||||
show attributes of Mbean:
|
||||
|
||||
```bash
|
||||
mbean java.lang:type=Threading
|
||||
```
|
||||
|
||||
|
||||
Mbean name support wildcard matcher:
|
||||
|
||||
```bash
|
||||
mbean java.lang:type=Th*
|
||||
```
|
||||
|
||||
> Notes:ObjectName matching rules differ from normal wildcards, Reference resources:[javax.management.ObjectName](https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html?is-external=true)
|
||||
|
||||
Wildcards match specific attributes:
|
||||
|
||||
```bash
|
||||
mbean java.lang:type=Threading *Count
|
||||
```
|
||||
|
||||
Switch to regular matching using the `-E` command:
|
||||
|
||||
```bash
|
||||
mbean -E java.lang:type=Threading PeakThreadCount|ThreadCount|DaemonThreadCount
|
||||
```
|
||||
|
||||
Real-time monitoring using `-i` command:
|
||||
|
||||
```bash
|
||||
mbean -i 1000 java.lang:type=Threading *Count
|
||||
```
|
||||
@@ -1,6 +1,12 @@
|
||||
Release Notes
|
||||
=============
|
||||
|
||||
|
||||
v3.1.1
|
||||
---
|
||||
|
||||
* [https://github.com/alibaba/arthas/releases/tag/arthas-all-3.1.1](https://github.com/alibaba/arthas/releases/tag/arthas-all-3.1.1)
|
||||
|
||||
v3.1.0
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user