aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2014-10-13 12:10:13 +0100
committerUbitUmarov2014-10-13 12:10:13 +0100
commita301bad8ad047f4acf122d5b47be8d81c371c3c3 (patch)
tree1406693ab81a363f5e2522fb02e08ed0f7dbad60
parentname the thread (diff)
downloadopensim-SC_OLD-a301bad8ad047f4acf122d5b47be8d81c371c3c3.zip
opensim-SC_OLD-a301bad8ad047f4acf122d5b47be8d81c371c3c3.tar.gz
opensim-SC_OLD-a301bad8ad047f4acf122d5b47be8d81c371c3c3.tar.bz2
opensim-SC_OLD-a301bad8ad047f4acf122d5b47be8d81c371c3c3.tar.xz
on util thread pool reduce the min number of threads, increase the
maximum and increase the idle time before release to OS
-rw-r--r--OpenSim/Framework/Util.cs2
-rw-r--r--OpenSim/Region/Application/OpenSim.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index b8b78fa..d807e2a 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1850,7 +1850,7 @@ namespace OpenSim.Framework
1850 1850
1851 STPStartInfo startInfo = new STPStartInfo(); 1851 STPStartInfo startInfo = new STPStartInfo();
1852 startInfo.ThreadPoolName = "Util"; 1852 startInfo.ThreadPoolName = "Util";
1853 startInfo.IdleTimeout = 2000; 1853 startInfo.IdleTimeout = 20000;
1854 startInfo.MaxWorkerThreads = maxThreads; 1854 startInfo.MaxWorkerThreads = maxThreads;
1855 startInfo.MinWorkerThreads = minThreads; 1855 startInfo.MinWorkerThreads = minThreads;
1856 1856
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index e1e3d87..369e79d 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -113,8 +113,8 @@ namespace OpenSim
113 if (!String.IsNullOrEmpty(asyncCallMethodStr) && Utils.EnumTryParse<FireAndForgetMethod>(asyncCallMethodStr, out asyncCallMethod)) 113 if (!String.IsNullOrEmpty(asyncCallMethodStr) && Utils.EnumTryParse<FireAndForgetMethod>(asyncCallMethodStr, out asyncCallMethod))
114 Util.FireAndForgetMethod = asyncCallMethod; 114 Util.FireAndForgetMethod = asyncCallMethod;
115 115
116 stpMinThreads = startupConfig.GetInt("MinPoolThreads", 15); 116 stpMinThreads = startupConfig.GetInt("MinPoolThreads", 2 );
117 stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 15); 117 stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 25);
118 m_consolePrompt = startupConfig.GetString("ConsolePrompt", @"Region (\R) "); 118 m_consolePrompt = startupConfig.GetString("ConsolePrompt", @"Region (\R) ");
119 } 119 }
120 120