cancel
Showing results for 
Search instead for 
Did you mean: 

too many timers? Activiti speed break

benpr
Champ in-the-making
Champ in-the-making
Hello,

we have over 100.000 processes with activiti timers waiting 90 days (P90D).
In the last days our activiti performance was very bad. After stopping thousands of these waiting processes the performance is much better.

What can we do to stabilize our activiti installation without stopping processes?
Exists an option for optimizing the job engine for many timers?

Regards,

Ben
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Yes, for such a number of process instances you need to tweak the job executor: give it a bigger threadpool to start with for example.
Eg when using the AsyncExecutor, it has various settings: https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/...

benpr
Champ in-the-making
Champ in-the-making
Exists a best practice guideline for this?
50000 Timer –> maxPoolSize=10, …
100000 Timer –> maxPoolSize=20, …

Or a tip which values are good?