DEV Community

gcoleman2001
gcoleman2001

Posted on

Java async thread pool size

Hi All,
Anybody any advice for working out the max queue size for a java thread pool using async. I have a request coming in 2 per second and a max response time of 11ms and min response time of 2ms. There are 10 threads and queue size of 2000 and it handled it fine during a 1 hour soak test but want to refine the numbers if possible. I initially had a thread count of 5 and queue size of 500 but this resulted in a large number of 503 errors from the microservice.
Thanks

Top comments (0)

Image of Quadratic

Free AI chart generator

Upload data, describe your vision, and get Python-powered, AI-generated charts instantly.

Try Quadratic free

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay