How to test/validate async job executor?

Hello,

We are using Flowable version 6.4.1.

Here are the configurations of async job executor,

DefaultAsyncJobExecutor jobExecutor = new DefaultAsyncJobExecutor();
jobExecutor.setQueueSize(QUEUE_SIZE);
jobExecutor.setCorePoolSize(CORE_POOL_SIZE);
jobExecutor.setMaxPoolSize(MAX_POOL_SIZE);
jobExecutor.setAsyncJobAcquisitionEnabled(true);
jobExecutor.setAsyncJobLockTimeInMillis(JOB_EXECUTOR_LOCK_TIME_IN_MILLIS);
jobExecutor.setDefaultAsyncJobAcquireWaitTimeInMillis(ASYNC_JOB_ACQUIRE_WAIT_TIME_IN_MILLIS);
jobExecutor.setSecondsToWaitOnShutdown(JOB_EXECUTOR_SHUTDOWN_AWAIT_TIME_IN_SECONDS);
jobExecutor.setLockOwner(“CAS”);
jobExecutor.setAutoActivate(true);

How can I validate that the configurations which I’m using are working fine? I need to see number of threads getting created when I start 100 process instances in one shot and how are they handled in the async executor.

Regards,
Ashmita Sinha

One quick way is to use a profiling tool (e.g. https://visualvm.github.io/ or others), put load on the application with async service tasks and validate that the number of threads are created.

Is there a reason you’re using such an old version? Many fixes and improvements have been made since. Especially in this area.