Switch from legacy JVM diagnostic logging to unified logging#26056
Switch from legacy JVM diagnostic logging to unified logging#26056renatsaf wants to merge 4 commits into
Conversation
|
@
Since a default domain no longer contains |
|
@ |
|
Would be good to address the docs also in this PR to have everything together. |
|
@OndroMih agreed — done, all doc updates are now in this PR:
One I intentionally left as-is: |
5f4cd75 to
19547d6
Compare
Remove the legacy JVM diagnostic-logging options (-XX:+LogVMOutput and -XX:LogFile) and the now-orphaned -XX:+UnlockDiagnosticVMOptions from the domain.xml templates, and stop the V2-to-V3 config upgrade from adding them (it now strips -XX:+LogVMOutput as well, alongside the existing -XX:LogFile removal). Refresh the now-misleading LogVMOutput comment in JvmOptions. Test fixtures are cleaned of the legacy logging options; the still-valid -XX:+UnlockDiagnosticVMOptions marker is kept where launcher tests rely on it. Fixes eclipse-ee4j#24064 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Refresh the list-jvm-options sample output in the docs and manpage so it no longer shows -XX:+LogVMOutput, -XX:+UnlockDiagnosticVMOptions, and -XX:LogFile, which are no longer present in a default domain. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump the Eclipse Foundation copyright year to 2026 on the touched source files, and add the Eclipse Foundation copyright line to the Oracle-only test fixtures that were modified, as required by the copyright check. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Class Loader Debugging section instructed users to enable a special JVM log file via -XX:+LogVMOutput / -XX:LogFile, the legacy options this PR removes. Replace them with the unified-logging equivalent (-Xlog:all:file=...) and drop the obsolete JRockit note. Addresses review feedback to keep all doc updates in this PR. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19547d6 to
b6cc12a
Compare
Fixes #24064
Removes the legacy JVM diagnostic-logging options (
-XX:+LogVMOutput,-XX:LogFile=...) and the now-orphaned-XX:+UnlockDiagnosticVMOptionsfrom the codebase.Changes
nucleus+appserverdomain.xml): remove the orphaned-XX:+UnlockDiagnosticVMOptions(theLogVMOutput/LogFileoptions it used to unlock were already gone; nothing else needed it).V2ToV3ConfigUpgrade: stop adding the legacy logging trio to upgraded configs (ADD_LIST), and add-XX:+LogVMOutputtoBASE_REMOVAL_LISTso an upgrade actively strips it (alongside the existing-XX:LogFileremoval).LogVMOutputcomment inJvmOptions(its-XX:+Unlock*ordering logic is retained).-XX:+UnlockDiagnosticVMOptionsis kept in fixtures (it is a valid, non-deprecated diagnostic-unlock flag) whereGFLauncherTestrelies on it as a jvm-option pass-through marker.Testing
nucleus/admin/launcher: 8/8 tests pass.nucleus/common/common-utilMiniXmlParserTest: 22/22 pass (validates the changed fixtures parse correctly).nucleus/admin/server-mgmt: compiles.Why no
-XlogreplacementThe legacy options were already vestigial: default domains no longer route VM diagnostic output to
jvm.log. There is therefore nothing to replace with-Xlog— this change removes the dead legacy configuration. Anyone who wants JVM unified logging can still add a standard-Xlog:...JVM option to their domain.🤖 Generated with Claude Code