summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index c8c3f4a65fa..9bdb06ea3ac 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -71,7 +71,12 @@ public final class ThreadPool
//
_keys = _selector.selectedKeys();
- int size = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".Size", 5);
+ //
+ // We use just one thread as the default. This is the fastest
+ // possible setting, still allows one level of nesting, and
+ // doesn't require to make the servants thread safe.
+ //
+ int size = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".Size", 1);
if(size < 1)
{
size = 1;