RFR: 8364182: Add jcmd VM.properties command [v5]
Kieran Farrell
kfarrell at openjdk.org
Fri Jan 9 09:54:08 UTC 2026
> The goal of this PR is to add a means of exposing security properties at runtime to aid the debugging security related issues/misconfigurations etc. Currently, only initial security properties set at start up can be exposed via the `InitialSecurityProperty` JFR event.
>
> This patch introduces a new jcmd diagnostic command `VM.properties`, which enables developers to print either the current system properties or security properties of a running Java process via command-line arguments (-system or -security). To avoid clutter within the jcmd command list, the old `VM.system_properties` command is hidden, but not removed so will not break existing usages. The implementation of each is shared to reduce duplication.
Kieran Farrell has updated the pull request incrementally with one additional commit since the last revision:
hide command
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29124/files
- new: https://git.openjdk.org/jdk/pull/29124/files/6675081d..ee7d4707
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29124&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29124&range=03-04
Stats: 65 lines in 1 file changed: 25 ins; 10 del; 30 mod
Patch: https://git.openjdk.org/jdk/pull/29124.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29124/head:pull/29124
PR: https://git.openjdk.org/jdk/pull/29124
More information about the core-libs-dev
mailing list