From c87751a822db328145963782f0f10adb23e32d39 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 7 Feb 2012 23:03:53 +0000 Subject: Add start GC memory and end GC memory to object stress test printouts. This illustrates that references to Scene, SOG, etc. are not currently being released when a stress test ends (or at regression test end in general). This means even the current stress tests take much more memory than they need, a problem that will have to be addressed. --- OpenSim/Tests/Torture/ScriptTortureTests.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Tests/Torture/ScriptTortureTests.cs') diff --git a/OpenSim/Tests/Torture/ScriptTortureTests.cs b/OpenSim/Tests/Torture/ScriptTortureTests.cs index c0239ba..d94bbde 100644 --- a/OpenSim/Tests/Torture/ScriptTortureTests.cs +++ b/OpenSim/Tests/Torture/ScriptTortureTests.cs @@ -107,6 +107,8 @@ namespace OpenSim.Tests.Torture m_expectedChatMessages = scriptsToCreate; int startingObjectIdTail = 0x100; + GC.Collect(); + for (int idTail = startingObjectIdTail;idTail < startingObjectIdTail + scriptsToCreate; idTail++) { AddObjectAndScript(idTail, userId); -- cgit v1.1