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

docs - tip for -server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0-beta2
    • Documentation
    • None
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            tgkprog Tushar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: