Spring boot Camunda starter project not closing the threads spawn at some point I see the number of open threads count equals to 3500

I have created a workflow with 3 task, which makes a Rest API,
every time workflow gets invoked threads spawn by camunda are not getting closed.As these threads are not getting closed after some time when thread count is approx 3500, service crashes down.

this is very critical issue , can some help me or give some pointers

Hi @Mithun_Shetty,

I would suspect that this is releated to your implementation and the REST client you use for this.

The code in the Java Delegate implementation should not start any new threads.

But without any details, nobody can help you.

Hope this helps, Ingo

1 Like

in-bound-call-test.bpmn (8.4 KB)

above is bpmn model used, we are using http connector

Hi @Mithun_Shetty,

the connectors are built based on Apache httpclient: https://docs.camunda.org/manual/7.12/reference/connect/http-connector/.

A quick google search with “apache httpclient starting many threads” brought me to https://hc.apache.org/httpclient-legacy/threading.html.

Maybe you can configure to use a limited number of threads for outbound connections.

Hope this helps, Ingo

I was trying few trial in bpmn workflow, what I did is added a timer after start event, looks timer thread doesn’t get killed

in-bound-call-test.bpmn (8.4 KB)
with this workflow, I see one thread keeps adding every time when I execute workflow

@Mithun_Shetty are using any executor service to start the process?