// [myakovlev] Do not delete - it is for debugging public static void tryGc(int times) { if ((ourMode & RUN_GC) == 0) return; for (int qqq = 1; qqq < times; qqq++) { try { Thread.sleep(qqq * 1000); } catch (InterruptedException e) { e.printStackTrace(); } System.gc(); // long mem = Runtime.getRuntime().totalMemory(); log("Runtime.getRuntime().totalMemory() = " + Runtime.getRuntime().totalMemory()); } }