diff options
author | Dr Scofield | 2009-06-25 08:17:37 +0000 |
---|---|---|
committer | Dr Scofield | 2009-06-25 08:17:37 +0000 |
commit | 98ea70644abd9c51c5534b416a12ef56c8ead07e (patch) | |
tree | 9ebd6555a63d77bd22f38e102c19aba65454a86c /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | cosmetic change (diff) | |
download | opensim-SC_OLD-98ea70644abd9c51c5534b416a12ef56c8ead07e.zip opensim-SC_OLD-98ea70644abd9c51c5534b416a12ef56c8ead07e.tar.gz opensim-SC_OLD-98ea70644abd9c51c5534b416a12ef56c8ead07e.tar.bz2 opensim-SC_OLD-98ea70644abd9c51c5534b416a12ef56c8ead07e.tar.xz |
From: Alan Webb <alan_webb@us.ibm.com>
After noticing on several occasions that the thread counts
we see when running OpenSIm were bordering on the astronomical
I decided to seriously investigate.
After much poking I discovered that the problem is actually very
simple. The XEngine secition of the example ini says that the
timeout for an iden thread is in seconds, and an example value
of 60 is specified. In fact, this is actually resulting in a 60mS
idle timeout, which is not normally enough for a smart thread
to survive. I have added a multiplier to the XEngine constructor
so that the number now matches the published behavior.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 4ab564b..1b26391 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -902,7 +902,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
902 | m_MaxScriptQueue = maxScriptQueue; | 902 | m_MaxScriptQueue = maxScriptQueue; |
903 | 903 | ||
904 | STPStartInfo startInfo = new STPStartInfo(); | 904 | STPStartInfo startInfo = new STPStartInfo(); |
905 | startInfo.IdleTimeout = idleTimeout; | 905 | startInfo.IdleTimeout = idleTimeout*1000; // convert to seconds as stated in .ini |
906 | startInfo.MaxWorkerThreads = maxThreads; | 906 | startInfo.MaxWorkerThreads = maxThreads; |
907 | startInfo.MinWorkerThreads = minThreads; | 907 | startInfo.MinWorkerThreads = minThreads; |
908 | startInfo.ThreadPriority = threadPriority; | 908 | startInfo.ThreadPriority = threadPriority; |