pw.println("! VM free memory=" + Runtime.getRuntime().freeMemory() );
long free = Runtime.getRuntime().freeMemory(); long total = Runtime.getRuntime().totalMemory(); long used = total-free; pw.println("! VM free memory =" + free ); pw.println("! VM total memory=" + total); pw.println("! -------------------------"); pw.println("! used            " + used  );
    private void printStatus( OutputStream out)    {         PrintWriter pw = new PrintWriter(out);         pw.println("\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");         pw.println("! SimpleTransformer status");         pw.println("! num watched objects (blackboard)=" + watchedBlackboardObjects.size() );         pw.println("! num removed objects (blackboard)=" + this.numberRemovedObjects );         pw.println("! VM free memory=" + Runtime.getRuntime().freeMemory() );         pw.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");         pw.flush();    }