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

Performance improvement in DefaultCamelContext by delaying synchronized block

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

            • Assignee:
              njiang Willem Jiang
              Reporter:
              ladoe00 Eric

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment