mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
update vmtool.md
This commit is contained in:
@@ -11,7 +11,19 @@ vmtool
|
||||
### getInstances
|
||||
|
||||
```bash
|
||||
vmtool --action getInstances --className java.lang.String --limit 10
|
||||
$ vmtool --action getInstances --className java.lang.String --limit 10
|
||||
@String[][
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com.taobao.arthas.core.shell.session.Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/],
|
||||
@String[java/util/concurrent/ConcurrentHashMap$ValueIterator],
|
||||
@String[java/util/concurrent/locks/LockSupport],
|
||||
]
|
||||
```
|
||||
|
||||
> Through the `--limit` parameter, you can limit the number of return values to avoid pressure on the JVM when obtaining large data. The default value of limit is 10.
|
||||
|
||||
@@ -12,7 +12,19 @@ vmtool
|
||||
### 获取对象
|
||||
|
||||
```bash
|
||||
vmtool --action getInstances --className java.lang.String --limit 10
|
||||
$ vmtool --action getInstances --className java.lang.String --limit 10
|
||||
@String[][
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com.taobao.arthas.core.shell.session.Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/taobao/arthas/core/shell/session/Session.class],
|
||||
@String[com/],
|
||||
@String[java/util/concurrent/ConcurrentHashMap$ValueIterator],
|
||||
@String[java/util/concurrent/locks/LockSupport],
|
||||
]
|
||||
```
|
||||
|
||||
> 通过 `--limit`参数,可以限制返回值数量,避免获取超大数据时对JVM造成压力。默认值是10。
|
||||
|
||||
Reference in New Issue
Block a user