Is thread pool size is configurable ? #13239
-
We have successfully upgraded our Jetty server from Jetty 11 to Jetty 12. Everything is working fine. I have one question. We have created a standalone server using Jetty. httpServer = new Server(threadPool); In this thread, the pool object we have set the max pool size to 500, can we increase it, or can we make it configurable? Is there any impact if we increase this thread pool? Can someone please give more details about this? What is the max limit? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That depends on what your The behavior that jetty-home setup uses is like this ...
This depends on both your hardware, and the nature of your web application.
See the documentation: https://jetty.org/docs/jetty/12/programming-guide/arch/threads.html
The limit is dependent on your implementation, your java version, and your hardware. |
Beta Was this translation helpful? Give feedback.
That depends on what your
threadPool
implementation is.The behavior that jetty-home setup uses is like this ...
jetty.project/jetty-ee10/jetty-ee10-demos/jetty-ee10-demo-embedded/src/main/java/org/eclipse/jetty/ee10/demos/LikeJettyXml.java
Lines 74 to 78 in dd45eef
This depends on both your hardware, and the nature of your web application.
So…