framework main thread pool is always active and in use ( even id hard to catch) so show in on show stats. Disable ServerStatsCollector by default, since most don't use it, Adicionally it uses shared framework performance counters system that may be affected if a region crashs

This commit is contained in:
UbitUmarov
2017-06-16 18:16:26 +01:00
parent 822574df9f
commit 4df19ece53
3 changed files with 47 additions and 24 deletions

View File

@@ -88,7 +88,7 @@ namespace OpenSim.Framework.Monitoring
IConfig cfg = source.Configs["Monitoring"];
if (cfg != null)
Enabled = cfg.GetBoolean("ServerStatsEnabled", true);
Enabled = cfg.GetBoolean("ServerStatsEnabled", false);
if (Enabled)
{
@@ -98,12 +98,18 @@ namespace OpenSim.Framework.Monitoring
public void Start()
{
if(!Enabled)
return;
if (RegisteredStats.Count == 0)
RegisterServerStats();
}
public void Close()
{
if(!Enabled)
return;
if (RegisteredStats.Count > 0)
{
foreach (Stat stat in RegisteredStats.Values)