Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2990

ThreadUtil performance improvement

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 5.8.0.Final
    • 5.7.2.Final
    • Transaction Core
    • None

    Description

      The ThreadUtil changes introduced for the bug fix under JBTM-2673, cause lock contention on the static WeakHashMap under high load.

      The proposed fix is to partially reintroduce the earlier behavior of caching the value in a ThreadLocal, since the dominant use case is pooled threads repeatedly looking up their own identity. The global lookup capability introduced for the fix remains necessary for less common use cases, but the locking can be taken off the critical path for most workloads.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jhallida Jonathan Halliday
              rhn-engineering-jhallida Jonathan Halliday
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: