# Flowable engine performance drops dramatically under HTTP requests load

**URL:** https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694
**Category:** Flowable Engine
**Created:** [March 23, 2020, 7:01pm UTC](https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694 "2020-03-23T19:01:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![VladimirKhil](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/vladimirkhil/32/1655_2.png) [@VladimirKhil](https://forum.flowable.org/u/VladimirKhil)
#### Post date: [March 23, 2020, 7:01pm UTC](https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694/1 "2020-03-23T19:01:36Z")

</div>

Hello!

We are examining Flowable engine (running inside Docker in Flowable REST app) performance under heavy load of HTTP requests and without it. These requests each create new process instance in Flowable engine. It seems that performance differs dramatically in these cases. We use simple process definition with single async serviceTask which just writes a message to the log.

When the requests are sent (758 per second), Flowable can complete only 72 (191 with RabbitMQ for async jobs) process instances per second. When the requests load is finished, the performance raises up to 457 (1110 with RabbitMQ) and Flowable finishes all unfinished (and scheduled) jobs very fast.

We see that Tomcat and Async Executor use different thread pools, so they should not compete for the threads. We also understand that the server resources are limited and Tomcat requests processing use them. But is such a big difference normal? Should we tune some Java settings? Should we limit the number of Tomcat threads?

Any help would be appreciated.

Thank you.

---

<div class="post-metadata">

### Author: ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)
#### Post date: [March 25, 2020, 7:17am UTC](https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694/2 "2020-03-25T07:17:47Z")

</div>

Hey @VladimirKhil,

I think that this topic is the same as [Bad performance with async service tasks](https://forum.flowable.org/t/bad-performance-with-async-service-tasks/5641/) and @joram already provided you input on it in his [reply](https://forum.flowable.org/t/bad-performance-with-async-service-tasks/5641/14).

Cheers,  
Filip

---

<div class="post-metadata">

### Author: ![VladimirKhil](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/vladimirkhil/32/1655_2.png) [@VladimirKhil](https://forum.flowable.org/u/VladimirKhil)
#### Post date: [March 25, 2020, 7:46am UTC](https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694/3 "2020-03-25T07:46:11Z")

</div>

Thank you for the answer. But I do not understand why Async Executor threads start to perform better without Tomcat load if they are totally separated from Tomcat threads. The only reason is the limit of CPU resources, as far as I understand.

---

<div class="post-metadata">

### Author: ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)
#### Post date: [March 25, 2020, 9:11am UTC](https://forum.flowable.org/t/flowable-engine-performance-drops-dramatically-under-http-requests-load/5694/4 "2020-03-25T09:11:00Z")

</div>

> [@VladimirKhil](#):
>
> We see that Tomcat and Async Executor use different thread pools, so they should not compete for the threads.

If they’re executed on the same CPU, they will compete even if they’re in different threadpools.
