user3853393
user3853393

Reputation: 253

Creation of parallel threads for bulk request handling?

I have rest service and want to handle almost 100 requests in parallel for this service. I have mentioned number of threads and number of connections to create as 100 in my application.yml even i did not see 100 connections created to handle requests

Here is what i did in my application.yml

server.tomcat.max-threads=100
server.tomcat.max-connections=100

I am using yourkit to see the internals , but when i start its created only 10 connections to handle requests, when i sent multiple requests also the count of request handling threads not increased its remain as 10. see the attachment i took from yourkit.enter image description here

Upvotes: 0

Views: 53

Answers (1)

Heuriskos
Heuriskos

Reputation: 532

You're setting max threads. Not minimum threads. Tomcat in this case has decided the minimum should be 10.

Upvotes: 1

Related Questions