#3201·arthas

使用arthas mcp, tt相关命令, 报错 Unknown error occurred

Author: JhoniWuCreated May 27, 2026Updated May 27, 2026
  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 4.1.8
  • Arthas 版本: 4.1.8
  • 操作系统版本: linux
  • 目标进程的JVM版本: jdk21
  • 执行arthas-boot的版本: 4.1.8

重现问题的步骤

  1. 连接http://my-server-ip:8563/mcp
  2. 使用 以及对应的mcp-session-id请求 record和list和info都会报错,delete-all能够正常返回,且登陆机器后查看确实都delete了

Authorization: Bearer xxx Content-Type: application/json Accept: application/json, text/event-stream mcp-session-id: 77241342-df48-4713-8f8e-7ddc9cfa10bc

{ "jsonrpc": "2.0", "id": 8, "method": "tools/call", "params": { "name": "tt", "arguments": { "action": "record", "classPattern": "xxx.xxx.xxxClass", "methodPattern": "method" } } }

  1. 报错示例 { "jsonrpc": "2.0", "id": 8, "result": { "content": [ { "type": "text", "text": "Unknown error occurred" } ], "isError": true } }

期望的结果

正常执行tt record/list/info等命令

实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

{ "jsonrpc": "2.0", "id": 8, "result": { "content": [ { "type": "text", "text": "Unknown error occurred" } ], "isError": true } }

声明:环境绝对正常,monitor,stack,trace,tt,watch,profiler,jvm,dashboard,memory,测试了9个mcp tools,只有tt不能正常执行。