arthas_exec
Execute Arthas commands on live Java processes and obtain results. Sync commands return output directly; streaming commands give a job ID and log path.
Instructions
Execute an Arthas command and return the result. For sync commands (dashboard, thread, jvm, sc, sm, jad, ognl, etc.) returns result directly. For streaming commands (watch, trace, stack, monitor) runs in background and returns a job ID + log file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The Arthas command to execute | |
| timeout | No | Timeout in ms (default: 30000) |