Skip to main content
Glama

JVM MCP Server

get_stack_trace

Retrieve and analyze thread stack traces for Java processes to diagnose performance issues, identify blocking threads, and monitor CPU usage intervals with specified parameters.

Instructions

获取线程堆栈信息

Args: pid: 进程ID thread_id: 线程ID,如果指定则只显示该线程的堆栈 top_n: 显示最忙的前N个线程 find_blocking: 是否查找阻塞其他线程的线程 interval: CPU使用率统计的采样间隔(毫秒),默认200ms show_all: 是否显示所有线程

Input Schema

NameRequiredDescriptionDefault
find_blockingNo
intervalNo
pidYes
show_allNo
thread_idNo
top_nNo

Input Schema (JSON Schema)

{ "properties": { "find_blocking": { "default": false, "title": "Find Blocking", "type": "boolean" }, "interval": { "default": null, "title": "Interval", "type": "integer" }, "pid": { "title": "Pid", "type": "integer" }, "show_all": { "default": false, "title": "Show All", "type": "boolean" }, "thread_id": { "default": null, "title": "Thread Id", "type": "integer" }, "top_n": { "default": null, "title": "Top N", "type": "integer" } }, "required": [ "pid" ], "title": "get_stack_traceArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xzq-xu/jvm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server