cancel
Showing results for 
Search instead for 
Did you mean: 

Concurent running commands

bekesizoltan
Champ in-the-making
Champ in-the-making
Hi,

Today I tried to do some kind of stresstest on the DB that I use.
I started a few threads and start processes in the threads and do the tasks to finish each processes. It ran well, but when I started to increase the number of the threads and the concurrent running process instances I came across with problems. This lead to the app run out of the database connection from the pool and causing database deadlocks too.

Is there a way how I could limit the engine to run parallel maximum a number of "commands"?

Many Thanks,
Zoltan
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

No not for synchronous process instances.
When you are using async continuations the execution of jobs is handled by the job executor and then the number of commands is controlled.

Best regards,