I could see that these errors come when we invoke API using HTTP connector especially when there are multiple HTTP connector running in parallel
1.Application server, database, JDK version - Tomcat JDK 1.8
2.Process engine configuration - StandAlone
3.The problematic BPM process- We have multi-instance call activity, each active multi-instance is invoking rest API with HTTP connector
4.Any logs/stack traces that are shown when the process is started.- Logs getting the same issue as mentioned earlier
I pinned down on the root cause. When multiple api’s are invoked (80 API calls ) at a time, all the api calls arrives at the http-connector and waiting. After some time it ends up with the “Connection has already been closed” Incident.I setup my http-connector with Async Before and After. Also maxActive to 40 in the connection pool configuration.
So here are my two doubts
Does each api call from http-connector require one DB connection to Camunda
Would an introduction of a time out on the http-connector would sort out the issue.