Thanks.
I have opened an issue for it:
[OFBIZ-13153] "null DispatchContext" issue under high load and concurrency -
ASF JIRA
Regards,Mayank
On Monday 14 October 2024 at 21:28:22 GMT+5:30, Nicolas Malin
<[email protected]> wrote:
Hello Mayank,
Thanks for this return.
Can you open a issue (Jira or github PR or both) with your improvement ?
Nicolas
Le 14/10/2024 à 12:33, Mayank Shridhar a écrit :
> 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
>