We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98245d1 + c2e17f4 commit 7f06377Copy full SHA for 7f06377
src/com/rabbitmq/client/impl/ConsumerWorkService.java
@@ -25,7 +25,7 @@
25
26
final public class ConsumerWorkService {
27
private static final int MAX_RUNNABLE_BLOCK_SIZE = 16;
28
- private static final int DEFAULT_NUM_THREADS = 5;
+ private static final int DEFAULT_NUM_THREADS = Runtime.getRuntime().availableProcessors() * 2;
29
private final ExecutorService executor;
30
private final boolean privateExecutor;
31
private final WorkPool<Channel, Runnable> workPool;
0 commit comments