diff options
author | UbitUmarov | 2014-10-13 11:41:11 +0100 |
---|---|---|
committer | UbitUmarov | 2014-10-13 11:41:11 +0100 |
commit | 6794508f8cd631315a2bbae68a0dcae6a9cd7845 (patch) | |
tree | ce6ceb647f8455be881f9efc641284fb7d908e74 /OpenSim/Region | |
parent | tune poll smartThreadpool use and give it a name (diff) | |
download | opensim-SC-6794508f8cd631315a2bbae68a0dcae6a9cd7845.zip opensim-SC-6794508f8cd631315a2bbae68a0dcae6a9cd7845.tar.gz opensim-SC-6794508f8cd631315a2bbae68a0dcae6a9cd7845.tar.bz2 opensim-SC-6794508f8cd631315a2bbae68a0dcae6a9cd7845.tar.xz |
reduce minimum number of smartpool threads and name it
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index d27869a..c73d81b 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -320,7 +320,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
320 | m_proxyurl = config.Configs["Startup"].GetString("HttpProxy"); | 320 | m_proxyurl = config.Configs["Startup"].GetString("HttpProxy"); |
321 | m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions"); | 321 | m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions"); |
322 | 322 | ||
323 | int maxThreads = 50; | 323 | int maxThreads = 15; |
324 | 324 | ||
325 | IConfig httpConfig = config.Configs["HttpRequestModule"]; | 325 | IConfig httpConfig = config.Configs["HttpRequestModule"]; |
326 | if (httpConfig != null) | 326 | if (httpConfig != null) |
@@ -336,12 +336,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
336 | STPStartInfo startInfo = new STPStartInfo(); | 336 | STPStartInfo startInfo = new STPStartInfo(); |
337 | startInfo.IdleTimeout = 20000; | 337 | startInfo.IdleTimeout = 20000; |
338 | startInfo.MaxWorkerThreads = maxThreads; | 338 | startInfo.MaxWorkerThreads = maxThreads; |
339 | startInfo.MinWorkerThreads = 5; | 339 | startInfo.MinWorkerThreads = 1; |
340 | startInfo.ThreadPriority = ThreadPriority.BelowNormal; | 340 | startInfo.ThreadPriority = ThreadPriority.BelowNormal; |
341 | startInfo.StartSuspended = true; | 341 | startInfo.StartSuspended = true; |
342 | 342 | ||
343 | ThreadPool = new SmartThreadPool(startInfo); | 343 | ThreadPool = new SmartThreadPool(startInfo); |
344 | 344 | ThreadPool.Name = "ScriptsHttpReq"; | |
345 | ThreadPool.Start(); | 345 | ThreadPool.Start(); |
346 | } | 346 | } |
347 | } | 347 | } |