Skip to content

Commit 263fbfe

Browse files
committed
reduce cap
1 parent 71835e6 commit 263fbfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/opendota/Main.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Main {
3333
// in-memory copies of the replay (raw, decompressed, and parsed output)
3434
// at once; an unbounded thread pool could spawn enough concurrent
3535
// requests to exhaust available memory under load.
36-
static final int MAX_THREADS = Math.max(1, (int) Math.min(Runtime.getRuntime().availableProcessors() * 4, 32));
36+
static final int MAX_THREADS = Math.max(1, (int) Math.min(Runtime.getRuntime().availableProcessors() * 4, 24));
3737

3838
public static void main(String[] args) throws Exception {
3939
HttpServer server = HttpServer.create(new InetSocketAddress(Integer.valueOf("5600")), 0);

0 commit comments

Comments
 (0)