mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Reduce the default pool threads to 15 (from 30) and the minimum from 5 to 2
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
clientstack_plugin="OpenSim.Region.ClientStack.LindenUDP.dll"
|
||||
|
||||
; Max threads to allocate on the FireAndForget pool
|
||||
MaxPoolThreads = 30
|
||||
MaxPoolThreads = 15
|
||||
|
||||
; ##
|
||||
; ## REGIONS
|
||||
|
||||
Reference in New Issue
Block a user