jetty-9 some useful debug

This commit is contained in:
Greg Wilkins 2012-08-31 14:05:40 +10:00
parent 83dbca6553
commit 8331b1db71
1 changed files with 7 additions and 1 deletions

View File

@ -64,10 +64,16 @@ public class SSLEngineLeakTest extends AbstractTest
Thread.sleep(1000);
// Perform GC to be sure that the WeakHashMap is cleared
System.gc();
Thread.sleep(1000);
System.gc();
// Check that the WeakHashMap is empty
if (objects.size()!=initialSize)
{
System.err.println(objects);
server.dumpStdErr();
}
Assert.assertEquals(initialSize, objects.size());
}