From 8ce4fd7234bd460652f6159a3b7a21d2bebee05d Mon Sep 17 00:00:00 2001
From: Melanie
Date: Thu, 22 Oct 2009 04:02:26 +0100
Subject: Reduce the default pool threads to 15 (from 30) and the minimum from
 5 to 2

---
 OpenSim/Framework/Util.cs             | 2 +-
 OpenSim/Region/Application/OpenSim.cs | 2 +-
 bin/OpenSim.ini.example               | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 9dfb75e..7dde6dd 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1302,7 +1302,7 @@ namespace OpenSim.Framework
             STPStartInfo startInfo = new STPStartInfo();
             startInfo.IdleTimeout = 2000; // 2 seconds
             startInfo.MaxWorkerThreads = maxThreads;
-            startInfo.MinWorkerThreads = 5;
+            startInfo.MinWorkerThreads = 2;
             startInfo.StackSize = 524288;
             startInfo.ThreadPriority = ThreadPriority.Normal;
 
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 42e2a1e..c9cec75 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -67,7 +67,7 @@ namespace OpenSim
 
             IConfig startupConfig = m_config.Source.Configs["Startup"];
 
-            Util.SetMaxThreads(startupConfig.GetInt("MaxPoolThreads", 30));
+            Util.SetMaxThreads(startupConfig.GetInt("MaxPoolThreads", 15));
 
             if (startupConfig != null)
             {
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example
index 92e6d91..25d3f39 100644
--- a/bin/OpenSim.ini.example
+++ b/bin/OpenSim.ini.example
@@ -43,7 +43,7 @@
     clientstack_plugin="OpenSim.Region.ClientStack.LindenUDP.dll"
 
     ; Max threads to allocate on the FireAndForget pool
-    MaxPoolThreads = 30
+    MaxPoolThreads = 15
 
     ; ##
     ; ## REGIONS
-- 
cgit v1.1