Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-354

Startup performance regression starting with JDK 24

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Final
    • None
    • core
    • None

      Starting with JDK 24 (or maybe 23) the new JLine-based JDK console causes a significant startup delay. This happens when initializing the console, which in turn happens when the console handler class is initialized.

      We can work around this problem by moving the console initialization to a nested class which is accessed on demand. This class can preemptively set theĀ jdk.console system property to java.base before acquiring the console instance.

      This will cause the console to skip the expensive JLine initialization. If the user wants to use JLine, they can acquire the console before setting up the logging handlers.

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: