diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/ServerBase.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs index 3c2dce8..ff3c80d 100644 --- a/OpenSim/Framework/Servers/ServerBase.cs +++ b/OpenSim/Framework/Servers/ServerBase.cs | |||
@@ -31,6 +31,7 @@ using System.Diagnostics; | |||
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Linq; | 32 | using System.Linq; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using System.Runtime; | ||
34 | using System.Text; | 35 | using System.Text; |
35 | using System.Text.RegularExpressions; | 36 | using System.Text.RegularExpressions; |
36 | using System.Threading; | 37 | using System.Threading; |
@@ -508,7 +509,11 @@ namespace OpenSim.Framework.Servers | |||
508 | private void HandleForceGc(string module, string[] args) | 509 | private void HandleForceGc(string module, string[] args) |
509 | { | 510 | { |
510 | Notice("Manually invoking runtime garbage collection"); | 511 | Notice("Manually invoking runtime garbage collection"); |
512 | GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce; | ||
511 | GC.Collect(); | 513 | GC.Collect(); |
514 | GC.WaitForPendingFinalizers(); | ||
515 | GC.Collect(); | ||
516 | GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.Default; | ||
512 | } | 517 | } |
513 | 518 | ||
514 | public virtual void HandleShow(string module, string[] cmd) | 519 | public virtual void HandleShow(string module, string[] cmd) |