stop_profiling
Stops an active JFR recording on a specified Java process and saves it to a file for performance analysis.
Instructions
Stops an active JFR recording and saves it to recordings/new_profile.jfr. Use recordings/new_profile.jfr for current data, recordings/old_profile.jfr for previous (before/after comparison).
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>",
"recordingId": "<recordingId>"
},
"name": "stop_profiling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID of the Java process that has the active recording. Must match the pid used in start_profiling. | |
| recordingId | Yes | ID of the recording to stop. This is the recordingId returned by start_profiling (e.g. '1' or '2'). |