Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23138

Replace synchronized block by a ConcurrentMap to reduce the contention on connection acquisition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10, 8.10
    • Fix Version/s: 7.10-HF33, 8.10-HF16, 9.3
    • Component/s: Runtime

      Description

      Currently the code to get a connection from a datasource passes through NuxeoConnectionManager$ActiveMonitor.handleObtained which is a synchronized method. The synchronized block is here to protect the concurrent update of the ttls map.

      It seems that the synchronized block could be removed and replaced by the use of a ConcurrentMap for the ttls variable to reduce the possible contention when acquiring a connection.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m