Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1119

Disable JMX by default

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: JMX
    • Labels:
      None

      Description

      I recently learned that RMI will by default trigger a full GC every hour.

      See Oracle RMI docs sun.rmi.dgc.server.gcInterval.

      Since JMX uses RMI, and Log4j 2 by default enables JMX, we are unintentionally causing all applications that use Log4j 2 to do a full GC every hour.

      This is clearly undesirable.

      I propose we change to switch JMX off by default and update the documentation to reflect this change and the reason behind it.

        Attachments

          Activity

            People

            • Assignee:
              rpopma Remko Popma
              Reporter:
              rpopma Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: