martinweiler opened a new issue, #1753:
URL: https://github.com/apache/incubator-kie-issues/issues/1753

   Using a process definition with a higher number of BusinessRulesTask handler 
nodes, we see a performance issue under load:
   
   *"kogito-event-executor-xx"* runs 
`org.kie.internal.utils.ChainedProperties.read(ChainedProperties.java:229)` and 
it relies on `java.util.jar.JarFile.getEntry()` that creates a lock monitor.
   
   ```
   "kogito-event-executor-12" #68 daemon prio=5 os_prio=0 cpu=4286.47ms 
elapsed=215.32s tid=0x00007f2f3d989670 nid=0x6a waiting for monitor entry 
[0x00007f2f3c7b6000]
   java.lang.Thread.State: BLOCKED (on object monitor)
   at java.util.zip.ZipFile.getEntry([email protected]/ZipFile.java:337)
   - locked <0x00000007408c6270> (a sun.net.www.protocol.jar.URLJarFile)
   at java.util.jar.JarFile.getEntry([email protected]/JarFile.java:513)
   at 
sun.net.www.protocol.jar.URLJarFile.getEntry([email protected]/URLJarFile.java:131)
   at 
sun.net.www.protocol.jar.JarURLConnection.connect([email protected]/JarURLConnection.java:135)
   at 
sun.net.www.protocol.jar.JarURLConnection.getInputStream([email protected]/JarURLConnection.java:175)
   at java.net.URL.openStream([email protected]/URL.java:1161)
   at org.kie.internal.utils.ChainedProperties.read(ChainedProperties.java:229)
           at 
org.kie.internal.utils.ChainedProperties.getChainedProperties(ChainedProperties.java:74)
           at 
org.kie.internal.utils.ChainedProperties.getChainedProperties(ChainedProperties.java:70)
           at 
org.drools.core.impl.RuleBaseFactory.newKnowledgeSessionConfiguration(RuleBaseFactory.java:155)
           at 
org.drools.project.model.ProjectRuntime.getConfForSession(ProjectRuntime.java:83)
           at 
org.drools.project.model.ProjectRuntime.newKieSession(ProjectRuntime.java:67)
           at com.test.SampleProcess.lambda$process$136(DataProcess.java:2337)
           at 
com.test.SampleProcess$$Lambda$1018/0x0000000800706cc0.get(Unknown Source)
           at 
org.jbpm.workflow.instance.rule.AbstractRuleTypeEngine.getKieRuntime(AbstractRuleTypeEngine.java:35)
           at 
org.jbpm.bpmn2.rule.RuleFlowGroupRuleTypeEngineImpl.evaluate(RuleFlowGroupRuleTypeEngineImpl.java:39)
   ```
   
   With multiple threads performing the same operation in parallel, we see many 
of them BLOCKED as in the above example.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to