It just defaults to the number of cores, not cores*2. We used to use
cores*2 as our initial benchmarking showed it to be slightly faster,
however it turns out that this is actually fairly variable and the
difference is minimal (one is not consistently faster than the other,
it depends on workload and hardware), so we use less threads by
default.
Stuart
On Mon, Oct 23, 2017 at 1:31 AM, Greg Hellings <greg.hellings(a)gmail.com> wrote:
I think the value defaults to 2 * number_of_cpu_cores_detected? So
yeah, 2
would be minimal.
On Sun, Oct 22, 2017 at 4:05 PM, Mario Carbajal <mario.e.carbajal(a)gmail.com>
wrote:
>
> Uh.. please disregard this email. I just realized it's the other way
> around: minimum two threads.
>
> On Sun, Oct 22, 2017 at 6:02 PM, Mario Carbajal
> <mario.e.carbajal(a)gmail.com> wrote:
>>
>> In the undertow builder there's this line:
>> ioThreads = Math.max(Runtime.getRuntime().availableProcessors(), 2);
>>
>> Why the cap? is it not recommended to go over 2?
>
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/undertow-dev
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev