Two Apps using the same Database cause slow execution

I have the following scenario:

I want to use the UI from My App 1 but the Java Delegate of My App 2.

When configuring both Apps with jobExecutorDeploymentAware to true this Scenario works.

But the execution time is really bad (around 15 Seconds) for each automatic task, like Delegate or DMN.

Is this Scenario not recommended or do I miss something?

Hi,

Have you considered using a java profiler to see where the time goes?

Regards

Rob

Hi @pme123,

when you have low traffic in the process engine, the job acquisition slows down, up to a minute before it checks for new jobs again.

You can configure this setting maxWait to a lower value than 60 seconds, which is the default: https://docs.camunda.org/manual/7.13/reference/deployment-descriptors/tags/job-executor/#job-acquisition-configuration-properties

If you set the value too low, you will put a higher load on the database. 500ms could slow down the whole system.

Hope this helps, Ingo

1 Like