-
1. Re: IO Worker configuration for Undertow
papegaaij May 22, 2014 8:49 AM (in response to papegaaij)Is there anyone who can point me to the documentation of these settings?
-
2. Re: IO Worker configuration for Undertow
kobe_fans May 26, 2014 4:14 AM (in response to papegaaij)I do have the same question , like this:
<subsystem xmlns="urn:jboss:domain:io:1.0">
<worker name="default" io-threads="5" task-max-threads="50"/>
<buffer-pool name="default" buffer-size="16384" buffers-per-slice="128"/>
</subsystem>
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
-
3. Re: IO Worker configuration for Undertow
f_marchioni Jul 21, 2014 3:36 PM (in response to papegaaij)Hello!
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
Francesco
-
4. Re: IO Worker configuration for Undertow
rafaelcba Apr 24, 2017 8:12 AM (in response to f_marchioni)Hi f_marchioni,
Does the concepts you explained still applies to the latest Wildfly configuration? Does something changed? I see there is no thread subsystem anymore on Wildfly.
-
5. Re: IO Worker configuration for Undertow
masummymesingh Aug 1, 2017 3:15 AM (in response to f_marchioni)I am also having same to issue for indentify max-threads in wildfy 10 .
Did you solve this problem ?