glassfish
glassfish copied to clipboard
Switch from Legacy JVM Logging to Unified Logging
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());
}
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
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
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