Dear all,
We are using Ofbiz 18 for a project of ours, and while performance-testing it
with high load (such as 200 concurrent users with JMeter), we have run into
situations where - for some tenants, it does not find the Dispatcher.
We tried debugging it a bit from our end and found it to be a thread-safety
issue.
In the ServiceDispatcher.java class, we added the synchronized keyword on the
following 2 method signatures and then it seemed to work fine:
public static synchronized getInstance (Delegator delegator)
public static synchronized void register (DispatchContext context)
Please let me know how can this be checked into the main branch for Ofbiz so
that it becomes a part of the main release after proper validation.
Thanks,Mayank