glassfish icon indicating copy to clipboard operation
glassfish copied to clipboard

Switch from Legacy JVM Logging to Unified Logging

Open dmatej opened this issue 3 years ago • 3 comments

See links:

  • https://foojay.io/today/introduction-to-jvm-unified-logging-jep-158-jep-271/
  • https://foojay.io/today/embracing-jvm-unified-logging/
  • https://openjdk.org/jeps/158

GFEmbeddedLauncher and maybe other classes too still use LogVMOutput etc.

    private void addThreadDump(List<String> cmdLine) {
        File logDir = new File(domainDir, "logs");
        File jvmLogFile = new File(logDir, "jvm.log");

        // bnevins :
        // warning these are the only order-dependent JVM options that I know about
        // Unlock... *must* come before the other two.

        cmdLine.add("-XX:+UnlockDiagnosticVMOptions");
        cmdLine.add("-XX:+LogVMOutput");
        cmdLine.add("-XX:LogFile=" + jvmLogFile.getPath());
    }

dmatej avatar Aug 03 '22 22:08 dmatej

This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment

github-actions[bot] avatar Aug 04 '23 01:08 github-actions[bot]

This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]

This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment

github-actions[bot] avatar Aug 09 '25 00:08 github-actions[bot]