RFR: 8357828: Add a timestamp to jcmd diagnostic commands [v4]

Thomas Stuefe stuefe at openjdk.org
Thu Jan 29 09:39:25 UTC 2026


On Fri, 23 Jan 2026 14:59:45 GMT, Ivan Bereziuk <duke at openjdk.org> wrote:

> The timestamping implemented in JCmd.java would print timestamp only once at the beginning.

Good point.

For me the biggest point would be to cleanly correlate time in logs, e.g. gc logs, with time from command invocations the analyst or customer does. Without wondering about offsets.

> We also have DiagnosticCommandMBean for remove invokation. Keeping this timestamp on the client side means we don't need a project to look into what could happen there.

Also good point. I know I am of no help here :-D

My gut instinct is to keep jcmd client side simple and stupid, and put logic like this into hotspot. But I can live with both solutions. Having a timestamp always printed will be a good thing in any case.

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

PR Comment: https://git.openjdk.org/jdk/pull/27368#issuecomment-3816525840


More information about the hotspot-dev mailing list