On Thu, 8 Jan 2026 19:31:08 GMT, Kieran Farrell <[email protected]> wrote:

> 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.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: f2f88281
Author:    Kieran Farrell <[email protected]>
Committer: Sean Coffey <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/f2f8828188f45d16344c82adfbf951f7409b8825
Stats:     110 lines in 7 files changed: 87 ins; 11 del; 12 mod

8364182: Add jcmd VM.security_properties command

Reviewed-by: coffeys, kevinw, alanb

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

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

Reply via email to