aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2010-09-01 14:08:52 +0200
committerMelanie Thielker2010-09-01 14:08:52 +0200
commit2232e6f27300032188a7a1eeb77c56e84cd51d66 (patch)
tree985e07b55562edf77b39a90c60aa3cff8141afd4 /OpenSim/Region
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC_OLD-2232e6f27300032188a7a1eeb77c56e84cd51d66.zip
opensim-SC_OLD-2232e6f27300032188a7a1eeb77c56e84cd51d66.tar.gz
opensim-SC_OLD-2232e6f27300032188a7a1eeb77c56e84cd51d66.tar.bz2
opensim-SC_OLD-2232e6f27300032188a7a1eeb77c56e84cd51d66.tar.xz
Improve sim health reporting. Output error message if heartbeat thread is restarted by scene. This may help to find out why this recovery mechanism isn't working.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index b950dbd..a9e6647 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1160,6 +1160,7 @@ namespace OpenSim.Region.Framework.Scenes
1160 //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat); 1160 //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat);
1161 if (HeartbeatThread != null) 1161 if (HeartbeatThread != null)
1162 { 1162 {
1163 m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName);
1163 HeartbeatThread.Abort(); 1164 HeartbeatThread.Abort();
1164 HeartbeatThread = null; 1165 HeartbeatThread = null;
1165 } 1166 }
@@ -4555,7 +4556,7 @@ namespace OpenSim.Region.Framework.Scenes
4555 // 4556 //
4556 int health=1; // Start at 1, means we're up 4557 int health=1; // Start at 1, means we're up
4557 4558
4558 if ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000) 4559 if (m_firstHeartbeat || ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000))
4559 health+=1; 4560 health+=1;
4560 else 4561 else
4561 return health; 4562 return health;