aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorDiva Canto2009-10-05 21:02:10 -0700
committerDiva Canto2009-10-05 21:02:10 -0700
commit0c46df973ad08381a7fcdb892e4525dfdb1d6ee4 (patch)
tree9df2cd43ea2832677070fac0fdce57756f61fba6 /OpenSim/Region/Framework/Scenes
parent#if DEBBUG code for monitoring the ThreadPool. (diff)
downloadopensim-SC_OLD-0c46df973ad08381a7fcdb892e4525dfdb1d6ee4.zip
opensim-SC_OLD-0c46df973ad08381a7fcdb892e4525dfdb1d6ee4.tar.gz
opensim-SC_OLD-0c46df973ad08381a7fcdb892e4525dfdb1d6ee4.tar.bz2
opensim-SC_OLD-0c46df973ad08381a7fcdb892e4525dfdb1d6ee4.tar.xz
Correction on the DEBUG code.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 35e57e5..d0dc021 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -963,11 +963,10 @@ namespace OpenSim.Region.Framework.Scenes
963 while (!shuttingdown) 963 while (!shuttingdown)
964 { 964 {
965#if DEBUG 965#if DEBUG
966 int w = 0, io = 0, maxw=0, maxio=0; 966 int w = 0, io = 0;
967 ThreadPool.GetAvailableThreads(out w, out io); 967 ThreadPool.GetAvailableThreads(out w, out io);
968 ThreadPool.GetMaxThreads(out maxw, out maxio); 968 if ((w < 10) || (io < 10))
969 if ((maxw - w < 10) || (maxio - io < 10)) 969 m_log.DebugFormat("[WARNING]: ThreadPool reaching exhaustion. workers = {0}; io = {1}", w, io);
970 m_log.DebugFormat("[WARNING]: ThreadPool reaching exhaustion. workers = {0}({1}); io = {2}({3})", w, io, maxw, maxio);
971#endif 970#endif
972 maintc = Environment.TickCount; 971 maintc = Environment.TickCount;
973 972