mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user