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)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️