Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.11.0
-
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.