RFR: 8319055: JCMD should not buffer the whole output of commands [v3]

Johan Sjölen jsjolen at openjdk.org
Mon Feb 10 18:28:11 UTC 2025


On Tue, 4 Feb 2025 20:12:44 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> > I didn't really understand what makes this streaming. The old protocol first sent out the result, and then the data, has this changed?
> 
> The protocol works as before. All command handlers are updated to set the result code earlier (after argument parsing, but before command execution). After the result code is set, it's sent to the tool and the rest of output (data) are send directly to the tool without buffering.

Aha, I understand. Before, result code meant "Parsing OK, Command Execution OK", now it means "Parsing OK, starting Command Execution". That's fine by me.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23405#issuecomment-2648889826


More information about the serviceability-dev mailing list