From e154a7e02dfdd5d553ee43a02069e5ea7d6a0270 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Mon, 12 Apr 2010 19:22:23 +0000 Subject: [PATCH] increase the thread count... it seems high but I think browsers heavily cache HTTP connections and using multiple browsers can actually starve us git-svn-id: http://google-refine.googlecode.com/svn/trunk@452 7d457c2a-affb-35e4-300a-418c747d4874 --- src/server/java/com/metaweb/gridworks/Gridworks.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/java/com/metaweb/gridworks/Gridworks.java b/src/server/java/com/metaweb/gridworks/Gridworks.java index b172db912..8a5deeef1 100644 --- a/src/server/java/com/metaweb/gridworks/Gridworks.java +++ b/src/server/java/com/metaweb/gridworks/Gridworks.java @@ -132,8 +132,8 @@ class GridworksServer extends Server { private ThreadPoolExecutor threadPool; public void init(String host, int port) throws Exception { - int maxThreads = Configurations.getInteger("gridworks.queue.size", 10); - int maxQueue = Configurations.getInteger("gridworks.queue.max_size", 50); + int maxThreads = Configurations.getInteger("gridworks.queue.size", 30); + int maxQueue = Configurations.getInteger("gridworks.queue.max_size", 300); long keepAliveTime = Configurations.getInteger("gridworks.queue.idle_time", 60); LinkedBlockingQueue queue = new LinkedBlockingQueue(maxQueue);