7
环境信息
- Arthas 版本: 3.6.1
- 目标进程的JVM版本: 1.8.0_312
使用 HTTP 接口执行 vmtool 指令:
-- request
{
"action": "exec",
"command": "vmtool --action getInstances --className org.apache.tomcat.util.threads.ThreadPoolExecutor -x 3",
"execTimeout": "1000"
}
-- response
{
"body": {
"command": "vmtool --action getInstances --className org.apache.tomcat.util.threads.ThreadPoolExecutor -x 3",
"jobId": 55,
"jobStatus": "TERMINATED",
"results": [
{
"expand": 3,
"jobId": 55,
"type": "vmtool",
"value": [
{
"activeCount": 0,
"completedTaskCount": 0,
"corePoolSize": 10,
"largestPoolSize": 10,
"maximumPoolSize": 200,
"poolSize": 10,
"queue": [],
"rejectedExecutionHandler": {},
"shutdown": false,
"submittedCount": 0,
"taskCount": 0,
"terminated": false,
"terminating": false,
"threadFactory": {},
"threadRenewalDelay": 1000
}
]
},
{
"jobId": 55,
"statusCode": 0,
"type": "status"
}
],
"timeExpired": false
},
"sessionId": "f01c09d0-0af6-4146-86aa-306812b4431e",
"state": "SUCCEEDED"
}
同样的指令在 web ui 上执行可以得到展开的结果: