* If a server has statistics, print these out to the log every hour to get some idea of how these evolve

* When returning GC.GetTotalMemory(), force collection first in order to get more accurate figures
This commit is contained in:
Justin Clarke Casey
2008-06-10 23:19:38 +00:00
parent be400d1bd0
commit 686f16cedd
2 changed files with 22 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ namespace OpenSim.Framework.Statistics
sb.Append(
string.Format(
"Allocated to OpenSim : {0} MB" + Environment.NewLine,
Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0)));
Math.Round(GC.GetTotalMemory(true) / 1024.0 / 1024.0)));
return sb.ToString();
}