From fcd04f4bfbb4f3aa5c6ddecf33f239fb4fbf7971 Mon Sep 17 00:00:00 2001 From: kamhung <22250530@qq.com> Date: Thu, 12 Nov 2015 14:30:50 +0800 Subject: [PATCH] --- src/com/wentch/redkale/boot/Application.java | 2 +- src/com/wentch/redkale/source/EntityCache.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/wentch/redkale/boot/Application.java b/src/com/wentch/redkale/boot/Application.java index d1a71fab6..42131676f 100644 --- a/src/com/wentch/redkale/boot/Application.java +++ b/src/com/wentch/redkale/boot/Application.java @@ -201,7 +201,7 @@ public final class Application { } public void init() throws Exception { - System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "" + Runtime.getRuntime().availableProcessors() * 16); + System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "" + Runtime.getRuntime().availableProcessors() * 4); System.setProperty("convert.bson.pool.size", "128"); System.setProperty("convert.json.pool.size", "128"); System.setProperty("convert.bson.writer.buffer.defsize", "4096"); diff --git a/src/com/wentch/redkale/source/EntityCache.java b/src/com/wentch/redkale/source/EntityCache.java index b76c734c9..1cdfe5524 100644 --- a/src/com/wentch/redkale/source/EntityCache.java +++ b/src/com/wentch/redkale/source/EntityCache.java @@ -395,7 +395,7 @@ public final class EntityCache { } public boolean isParallel() { - return this.list.size() >= 1024 * 64; + return this.list.size() >= 1024 * 1024; } private Stream listStream() {