aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
authorMelanie2009-10-22 02:28:53 +0100
committerMelanie2009-10-22 02:28:53 +0100
commit8a336c6860d66b9fbba6922c32e7a57fd355c57e (patch)
treeb519399cadf118bdb5a48fce9597e65d79667a0e /OpenSim/Region/Application/OpenSim.cs
parentMark new version (diff)
downloadopensim-SC-8a336c6860d66b9fbba6922c32e7a57fd355c57e.zip
opensim-SC-8a336c6860d66b9fbba6922c32e7a57fd355c57e.tar.gz
opensim-SC-8a336c6860d66b9fbba6922c32e7a57fd355c57e.tar.bz2
opensim-SC-8a336c6860d66b9fbba6922c32e7a57fd355c57e.tar.xz
Add MaxPoolThreads in startup to limit the size of the thread pool used
for FireAndForget. This lets us limit concurrency to make OpenSim play nice
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 143dd2a..42e2a1e 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -67,6 +67,8 @@ namespace OpenSim
67 67
68 IConfig startupConfig = m_config.Source.Configs["Startup"]; 68 IConfig startupConfig = m_config.Source.Configs["Startup"];
69 69
70 Util.SetMaxThreads(startupConfig.GetInt("MaxPoolThreads", 30));
71
70 if (startupConfig != null) 72 if (startupConfig != null)
71 { 73 {
72 m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", "startup_commands.txt"); 74 m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", "startup_commands.txt");