aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-10-29 22:53:06 +0000
committerJustin Clark-Casey (justincc)2012-10-29 22:53:06 +0000
commitc97890ca69df91e6590ac7dd234a3e86cf7fbaf1 (patch)
tree162edb4ac07550b227b55d7e8693941e0fa4d825 /OpenSim/Framework/Servers
parentminor: Fix verbose IAR save message to make it a bit clearer that item data i... (diff)
downloadopensim-SC_OLD-c97890ca69df91e6590ac7dd234a3e86cf7fbaf1.zip
opensim-SC_OLD-c97890ca69df91e6590ac7dd234a3e86cf7fbaf1.tar.gz
opensim-SC_OLD-c97890ca69df91e6590ac7dd234a3e86cf7fbaf1.tar.bz2
opensim-SC_OLD-c97890ca69df91e6590ac7dd234a3e86cf7fbaf1.tar.xz
Add "force gc" region console command which manually invokes garbage collection.
For debugging purposes.
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index aac9c45..5b2d7dc 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -192,8 +192,19 @@ namespace OpenSim.Framework.Servers
192 "threads show", 192 "threads show",
193 "Show thread status. Synonym for \"show threads\"", 193 "Show thread status. Synonym for \"show threads\"",
194 (string module, string[] args) => Notice(GetThreadsReport())); 194 (string module, string[] args) => Notice(GetThreadsReport()));
195
196 m_console.Commands.AddCommand("General", false, "force gc",
197 "force gc",
198 "Manually invoke runtime garbage collection. For debugging purposes",
199 HandleForceGc);
195 } 200 }
196 } 201 }
202
203 private void HandleForceGc(string module, string[] args)
204 {
205 MainConsole.Instance.Output("Manually invoking runtime garbage collection");
206 GC.Collect();
207 }
197 208
198 /// <summary> 209 /// <summary>
199 /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing 210 /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing