Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-748

Improve logging policy to avoid impact on performances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0
    • None
    • None

    Description

      Discussion with Claus on IRC:

      <cibsen> any good reason why SMX logging is configured to use line logging?
      <cibsen> thats slow
      <cibsen> WARNING Generating caller location information is extremely slow and should be avoided unless execution speed is not an issue.
      <cibsen> from the log4j manual
      <cibsen> log4j.appender.out.layout.ConversionPattern=%d

      {ABSOLUTE}

      | %-5.5p | %-16.16t | %-32.32c

      {1}

      | %-32.32C %4L | %X

      {bundle.id}

      - %X

      {bundle.name}

      - %X

      {bundle.version}

      | %m%n
      <cibsen> ah it was lower l which in fact is also slow
      <cibsen> The location information can be very useful. However, its generation is extremely slow and should be avoided unless execution speed is not an issue.
      <cibsen> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
      <jbonofre> cibsen: no special reason

      Attachments

        Issue Links

          Activity

            People

              lhein Lars Heinemann
              jbonofre Jean-Baptiste Onofré
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: