Skip to main content
Glama

get_stack_trace

Analyze Java thread stack traces by specifying process ID, thread ID, or top CPU-consuming threads. Identify blocking threads and customize sampling intervals for detailed JVM diagnostics in the MCP environment.

Instructions

获取线程堆栈信息

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
find_blockingNo
intervalNo
pidYes
show_allNo
thread_idNo
top_nNo

Latest Blog Posts

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