JDK-8331053 : Release Note: Thread and Timestamp Options for java.security.debug System Property
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8u431-perf,11.0.26-oracle,23
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2024-04-24
  • Updated: 2024-09-27
  • Resolved: 2024-05-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 23 JDK 8
11.0.26-oracleResolved 17.0.13-oracleResolved 21.0.5-oracleResolved 23Resolved 8u431-perfResolved
Related Reports
Cloners :  
Description
The `java.security.debug` system property now accepts arguments which add thread ID, thread name, caller information, and timestamp information to debug statements for all components or a specific component.

`+timestamp` can be appended to debug options to print a timestamp for that debug option.
`+thread` can be appended to debug options to print thread and caller information for that debug option.

Examples:
`-Djava.security.debug=all+timestamp+thread` adds timestamp and thread information to every debug statement generated.

`-Djava.security.debug=properties+timestamp` adds timestamp information to every debug statement generated for the `properties` component.

You can also specify `-Djava.security.debug=help` which will display a complete list of supported components and arguments.

See [Printing Thread and Timestamp Information](https://docs.oracle.com/en/java/javase/23/security/troubleshooting-security.html#GUID-EDB76EF1-D4B2-4D32-83C1-554129526FB4) for more information.