aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-16 16:41:46 +0000
committerJustin Clarke Casey2008-09-16 16:41:46 +0000
commit0b524537625fb4542d9ff41542cf81a9b4feb160 (patch)
tree74cdbc3ab8a8f3c6f9b7b3b392ccdb2dd5fc556f /OpenSim/Region/ScriptEngine
parent* minor: method documentation (diff)
downloadopensim-SC_OLD-0b524537625fb4542d9ff41542cf81a9b4feb160.zip
opensim-SC_OLD-0b524537625fb4542d9ff41542cf81a9b4feb160.tar.gz
opensim-SC_OLD-0b524537625fb4542d9ff41542cf81a9b4feb160.tar.bz2
opensim-SC_OLD-0b524537625fb4542d9ff41542cf81a9b4feb160.tar.xz
* Change XEngine default configuration values to match those in OpenSim.example.ini
* Particularly important for max threads since setting this to 2 was causing all events to wait behind the regularly sleeping maintenance event
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index f27a144..3b48362 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -160,15 +160,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
160 } 160 }
161 161
162 int minThreads = m_ScriptConfig.GetInt("MinThreads", 2); 162 int minThreads = m_ScriptConfig.GetInt("MinThreads", 2);
163 int maxThreads = m_ScriptConfig.GetInt("MaxThreads", 2); 163 int maxThreads = m_ScriptConfig.GetInt("MaxThreads", 100);
164 int idleTimeout = m_ScriptConfig.GetInt("IdleTimeout", 60); 164 int idleTimeout = m_ScriptConfig.GetInt("IdleTimeout", 60);
165 string priority = m_ScriptConfig.GetString("Priority", "BelowNormal"); 165 string priority = m_ScriptConfig.GetString("Priority", "BelowNormal");
166 int maxScriptQueue = m_ScriptConfig.GetInt("MaxScriptEventQueue",300); 166 int maxScriptQueue = m_ScriptConfig.GetInt("MaxScriptEventQueue",300);
167 int stackSize = m_ScriptConfig.GetInt("ThreadStackSize", 262144); 167 int stackSize = m_ScriptConfig.GetInt("ThreadStackSize", 262144);
168 int sleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10)*1000; 168 int sleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10) * 1000;
169 m_EventLimit = m_ScriptConfig.GetInt("EventLimit", 30); 169 m_EventLimit = m_ScriptConfig.GetInt("EventLimit", 30);
170 m_KillTimedOutScripts = m_ScriptConfig.GetBoolean("KillTimedOutScripts", false); 170 m_KillTimedOutScripts = m_ScriptConfig.GetBoolean("KillTimedOutScripts", false);
171 int saveTime = m_ScriptConfig.GetInt("SaveInterval", 300)*1000; 171 int saveTime = m_ScriptConfig.GetInt("SaveInterval", 120) * 1000;
172 172
173 ThreadPriority prio = ThreadPriority.BelowNormal; 173 ThreadPriority prio = ThreadPriority.BelowNormal;
174 switch (priority) 174 switch (priority)