This commit is contained in:
kamhung
2015-11-12 14:30:50 +08:00
parent c19c5f026f
commit fcd04f4bfb
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -395,7 +395,7 @@ public final class EntityCache<T> {
}
public boolean isParallel() {
return this.list.size() >= 1024 * 64;
return this.list.size() >= 1024 * 1024;
}
private Stream<T> listStream() {