When using an application server like Jetty or Tom...
# ktor
h
When using an application server like Jetty or Tomcat, does ktor utilise the underlying threadpool of those servers to handle executing logic of a routing handler (seems like the threadpool is only used to accept connection and read the request data from those connections), or does it just use its own
ThreadPoolExecutor
? In the case of jetty, I can see that the handler creates its own
ThreadPoolExecutor
, and the
execute
function of the Jetty embedded server (which will call to the underlying threadpool of Jetty to fun a task) was never stopped at during the execution of a call in debug mode, which indicates it was not called at all.
a
As I can see, the thread executor created in the
JettyKtorHandler
is used to handle HTTP calls. The name of the current header logged in the handler matches the thread name defined for the executer. For example:
Copy code
ktor-jetty-9000-17
Can you describe your problem in more detail?
h
There wasn't any particular problem that I had. I just want to confirm that the ktor server doesn't use the underlying web server (jetty)'s thread pool, but instead it creates its own executor pool.