AnsweredAssumed Answered

Several questions regarding activiti

Question asked by halfsoft on Oct 7, 2015
Latest reply on Oct 8, 2015 by jbarrez
Hello, i have several questions that i hope somebody will be able to answer regarding the usage of activiti.

1. Assuming that we use a remote mysql server (with low ping (around 0.45ms) and proper configuration), history disabled, we start 1 000 000 activiti processes that just are waiting for a timer to continue, so all 1 million are 'suspended' and at a given moment they will continue their execution (and just print to the console using a service task, calling a method in a stateless EJB that has a pool size of 1000).
What is the bottleneck in this situation - the database connection, the async executor? Our tests show that we get around 160-200 executions per second, way too low for our liking, no matter the configuration of the async executor(the configuration seems to affect the speed but this is the best that we got in our initial testing).

2. How long does the async executor stay "alive" to monitor for jobs that need to continue? For example in a servlet we create an activiti engine instance, we start 100 processes that should auto continue tomorrow at the same time, do we need to keep an activiti instance running/in memory in order to have the async executor do its job, or will it start automatically(maybe by setting up a timer) the next day.

Outcomes