Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6485

Performance improvement in DefaultCamelContext by delaying synchronized block

    XMLWordPrintableJSON

Details

    • Patch Available
    • Unknown

    Description

      When using Camel in a hi-throughput/multithreaded environment, I see a lot of contention in the DefaultCamelContext.getManagementStrategy() method. Camel is synchronizing on an AtomicBoolean no matter what is the value of the boolean. It is only required if the managementStrategy has not been initialized yet. I have attached a patch that delays the synchronization to when the managementStrategy is not initialized. This dramatically improved the performance of my system.

      Attachments

        Activity

          People

            njiang Willem Jiang
            ladoe00 Eric
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: