Is there anyone who can point me to the documentation of these settings?
I do have the same question , like this:
<worker name="default" io-threads="5" task-max-threads="50"/>
<buffer-pool name="default" buffer-size="16384" buffers-per-slice="128"/>
The configuration confused me , I use Jmeter to test wildfly , I want to improve the throughtout and performance by config io-threads and task-max-threads , but I don't know how to operation is available . Can someone tell me ? thanks
sorry, it seems I've missed this thread. So I'll be glad to add some further explanation which will included as well in the book.
Basically Undertow relies on the XNIO API for creating Worker threads using bounded-queue-thread-pool.
The bounded-queue-thread-pool thread pool executor has a core, maximum size, and a specified queue length. If the number of running threads is less than the core size when a task is submitted, a new thread will be created; otherwise, it will be put in the queue. If the queue's maximum size has been reached and the maximum number of threads hasn't been reached, a new thread is also created. If max-threads is hit, the call will be sent to the handoff-executor. If no handoff-executor is configured, the call will be discarded.
That being said, provided that there are enough io-threads to serve your http request, the core-max-threads (first) and the task-max-threads (after) are used to determine in the request is served or if it is going to be discarded.
Hope it helps
I am also having same to issue for indentify max-threads in wildfy 10 .
Did you solve this problem ?