Skip to content

Commit 6647623

Browse files
committed
Merge pull request #6 from maxmind/bz/fix-osx-build
Use less threads to keep the number of open files smaller
2 parents 6d7c910 + f02b9c1 commit 6647623

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)