mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-24 20:42:39 +02:00
Reduce default worker thread count
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
b5b281c717
commit
21b751dbd1
@ -16,7 +16,7 @@ import java.util.List;
|
||||
|
||||
public final class Server {
|
||||
public static final int WORKER_COUNT = Integer.getInteger("minestom.workers",
|
||||
Runtime.getRuntime().availableProcessors());
|
||||
Math.max(1, Runtime.getRuntime().availableProcessors() / 2));
|
||||
public static final int MAX_PACKET_SIZE = 2_097_151; // 3 bytes var-int
|
||||
public static final int SOCKET_SEND_BUFFER_SIZE = Integer.getInteger("minestom.send-buffer-size", MAX_PACKET_SIZE);
|
||||
public static final int SOCKET_RECEIVE_BUFFER_SIZE = Integer.getInteger("minestom.receive-buffer-size", 32_767);
|
||||
|
Loading…
Reference in New Issue
Block a user