Fixed number of worker threads for endpoint
This commit is contained in:
parent
52197975cd
commit
e6d8666862
|
@ -75,7 +75,7 @@ class Shutdownable {
|
||||||
* The number of threads used for the worker threads.
|
* The number of threads used for the worker threads.
|
||||||
*/
|
*/
|
||||||
@Property
|
@Property
|
||||||
public static int WORKER_THREAD_POOL_SIZE = Math.min(Runtime.getRuntime().availableProcessors() / 2, 1);
|
public static int WORKER_THREAD_POOL_SIZE = Math.max(Runtime.getRuntime().availableProcessors() / 2, 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of time in milli-seconds to wait for this endpoint to close all {@link Channel}s and shutdown gracefully.
|
* The amount of time in milli-seconds to wait for this endpoint to close all {@link Channel}s and shutdown gracefully.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user