[ 
https://issues.apache.org/jira/browse/OFBIZ-13153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Malin closed OFBIZ-13153.
---------------------------------
    Fix Version/s: Upcoming Branch
       Resolution: Fixed

I loaded this fix on trunk.

Like I change the dispatcher interface, I prefer to didn't backport it and let 
each to apply or not on his ofbiz implementation.

> "null DispatchContext" issue under high load and concurrency
> ------------------------------------------------------------
>
>                 Key: OFBIZ-13153
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13153
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/service
>    Affects Versions: 18.12.16
>         Environment: Virtual Machine:
> OS: RHEL 8.9
> VCPU: 16
> Total RAM: 64 GB
> Heap allocation (Xmx): 8 GB
>            Reporter: Mayank S
>            Assignee: Nicolas Malin
>            Priority: Major
>              Labels: performance
>             Fix For: Upcoming Branch
>
>         Attachments: Capture d’écran du 2025-11-05 13-16-17.png, 
> OFBIZ-13153.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> While performance-testing Ofbiz 18 under high load (200 concurrent users), we 
> have observed an intermittent error, stating "null DispatchContext".
> While doing more analysis, we realized it is a thread-safety issue, and it 
> was fixed by adding the 'synchronized' keyword to the following method 
> signatures in ServiceDispatcher.java:
> public static synchronized getInstance (Delegator delegator) 
> public static synchronized void register (DispatchContext context)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to