You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2025/11/05 12:15:00 UTC
[jira] [Commented] (OFBIZ-13153) "null DispatchContext" issue under high load and concurrency
[ https://issues.apache.org/jira/browse/OFBIZ-13153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035563#comment-18035563 ]
Nicolas Malin commented on OFBIZ-13153:
---------------------------------------
I raise up this ticket because during my test with java 21, I have this error randomly during execution test. When I run testIntegration, nine on ten failed. (So I waste my time to rerun again and again to pass through)
The problem seem to be provided from the initialisation of the dispatcher that isn't thread safe. I saw the registration execute on the same class on two different threat.
With the linked patch this issue leave. I supposed with the threading improvement of java 21 and the multiple threading on linux some collision appears now.
From my side I'm a pop-os linux with adm cpu 16 core. This isn't not appears on our virtual server with less core dedicated
> "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
> Attachments: 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)