Skip to content

Commit f02b9c1

Browse files
committed
Use less threads to keep the number of open files smaller
1 parent 856d701 commit f02b9c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/maxmind/db/MultiThreadedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public JsonNode call() throws UnknownHostException, IOException {
7070

7171
private static void runThreads(Callable<JsonNode> task)
7272
throws InterruptedException, ExecutionException {
73-
int threadCount = 1024;
73+
int threadCount = 256;
7474
List<Callable<JsonNode>> tasks = Collections.nCopies(threadCount, task);
7575
ExecutorService executorService = Executors
7676
.newFixedThreadPool(threadCount);

0 commit comments

Comments
 (0)