question: public void prepareForNextRun ( ) { for ( int i = 0 ; i < 5 ; i ++ ) { System . gc ( ) ; try { Thread . sleep ( 20 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } }
target:  Try to give GC some time to settle down.