Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-100

JBossLogManagerLogger unconditionally does string conversion

XMLWordPrintable

      JBossLogManagerLogger#doLog always converts the message to a String even if the level isn't loggable. This can have a negative performance impact and result in a lot of unnecessary allocations.

      For example LogAuditProvider#audit does trace logging which ends up calling AuditEvent#toString even if trace logging isn't enabled. In our case this results in a lot of allocations outside of TLABs.

              jperkins-rhn James Perkins
              pmarscha Philippe Marschall (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: