From 0b524537625fb4542d9ff41542cf81a9b4feb160 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 16 Sep 2008 16:41:46 +0000 Subject: * 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 --- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 6 +++--- 1 file 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 } int minThreads = m_ScriptConfig.GetInt("MinThreads", 2); - int maxThreads = m_ScriptConfig.GetInt("MaxThreads", 2); + int maxThreads = m_ScriptConfig.GetInt("MaxThreads", 100); int idleTimeout = m_ScriptConfig.GetInt("IdleTimeout", 60); string priority = m_ScriptConfig.GetString("Priority", "BelowNormal"); int maxScriptQueue = m_ScriptConfig.GetInt("MaxScriptEventQueue",300); int stackSize = m_ScriptConfig.GetInt("ThreadStackSize", 262144); - int sleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10)*1000; + int sleepTime = m_ScriptConfig.GetInt("MaintenanceInterval", 10) * 1000; m_EventLimit = m_ScriptConfig.GetInt("EventLimit", 30); m_KillTimedOutScripts = m_ScriptConfig.GetBoolean("KillTimedOutScripts", false); - int saveTime = m_ScriptConfig.GetInt("SaveInterval", 300)*1000; + int saveTime = m_ScriptConfig.GetInt("SaveInterval", 120) * 1000; ThreadPriority prio = ThreadPriority.BelowNormal; switch (priority) -- cgit v1.1