On Fri, 23 Jan 2026 14:59:45 GMT, Ivan Bereziuk <[email protected]> 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

Reply via email to