Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-beta2
    • Component/s: Documentation
    • Labels:
      None
    • Environment:

      windows

      Description

      Should add following to a FAQ or a page called 'improving log4j performance'

      "I discovered that adding -Dmaven.surefire.debug="-server" to the command line for SimplePerfTest yields performance similar to OS/X and Linux. The implication is that Log4j2 is benefitting greatly from the Hotspot compiler (27 nanoseconds per iteration with the default and 2 nanoseconds per iteration with -server). This probably also explains why, when I tried to to profiling with YourKit making changes to eliminate what YourKit was finding as hot spots made absolutely no difference as HotSpot was already eliminating them. However, making the changes manually might bring the performance in -client mode closer to -server."

      But talk about adding it to your server java call. Also might be mentioning - On windows server systems this happens automatically - I guess Java figured out its being called on a server class environment. but it does make a difference on a developer/ QA system

        Activity

        Hide
        Ralph Goers added a comment -

        Add information on client vs server to the performance page.

        Show
        Ralph Goers added a comment - Add information on client vs server to the performance page.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tushar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development