yuuvis® RAD Q&A

+2 votes
by (2.9k points)
retagged by

Dear OS,

is there a limitation on how many threads we can concurrently use to create objects via /rest-ws/service/dms/create ?

Thank you

1 Answer

+3 votes
by (3.3k points)
selected by
 
Best answer

For http calls the core-service (dms-service) uses the default thread pool. This pool is by default limited to 10 concurrent threads. Any additional call will wait until a thread from the pool becomes available. This can be changed by modifying the standalone-full-ha.xml in the standalone/configuration folder. But in most cases it will not help to archive more performance to do so. The hard limitation is set by physical cpu's in the system and by database speed. To use more concurrent threads won't help in most cases.
For the creation of many objects it will help to use the DmsBatchService.createObjects endpoints. Using this is faster, because the workload is distributed to internal working threads and the db operations are optimized for many objects at once.

br
Frank

Related questions

0 votes
2 answers
0 votes
2 answers
asked Nov 11, 2022 by EDuenkel (430 points)
0 votes
1 answer
0 votes
2 answers
asked Jan 2, 2019 by Mathias Keller (1.9k points)
+2 votes
1 answer
asked Dec 17, 2018 by Peter Strasser (2.1k points)
...