Integrated: 8356025: Provide a PrintVMInfoAtExit diagnostic switch

Thomas Stuefe stuefe at openjdk.org
Wed May 7 16:55:28 UTC 2025


On Thu, 1 May 2025 04:54:37 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Provides a `PrintVMInfoAtExit` diagnostic switch that, if active, causes the JVM to print out the equivalent of `jcmd VM.info` before exiting.
> 
> The `VM.info` output contains a large range of valuable information about the JVM and the process.
> 
> The switch can be surprisingly useful, e.g. when analysing short-lived processes that are too quick to be analysed with jcmd, or analysing JVM child processes in a process tree, and so on. Going forward, it can also remove the need for some of the more specific PrintxxxAtExit flags.
> 
> It can also make writing tests easier (want to make sure switch XX enables condition YY, and YY is printed as part of VM.info? Just start the VM with PrintVMInfoAtExit and parse the output )

This pull request has now been integrated.

Changeset: da5dc528
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/da5dc5287b3a81909a5c316f164f7f42d07d3664
Stats:     70 lines in 3 files changed: 70 ins; 0 del; 0 mod

8356025: Provide a PrintVMInfoAtExit diagnostic switch

Reviewed-by: mbaesken, jsikstro

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

PR: https://git.openjdk.org/jdk/pull/24980


More information about the hotspot-runtime-dev mailing list