gc_class_stats
Analyze class loader and metaspace statistics of a Java process via jcmd. Works with JDK 21+; older JDKs return an error.
Instructions
jcmd GC.class_stats (class loader / metaspace style stats where supported—often JDK 21+). On older JDK returns error hint; use heap_info or heap_histogram instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pid": "<pid>"
},
"name": "gc_class_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes |