RFR: 8319055: JCMD should not buffer the whole output of commands
Alex Menkov
amenkov at openjdk.org
Tue Feb 4 20:15:10 UTC 2025
On Tue, 4 Feb 2025 12:36:06 GMT, Johan Sjölen <jsjolen 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.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23405#issuecomment-2634963089
More information about the serviceability-dev
mailing list