import java.util.*; import java.lang.management.*; class ExeSaveDic { public static void main(String args[]) { NGramDic dic = new NGramDic(); dic.create(new FileRead(args[0])); IndexData ind = dic.getIndex().IndexData(); dic.getIndex().saveFile(args[1]); System.out.println(ind.getSaveSize()); IndexData d= ind;//dic.getIndexData(); for(int i = 0;i lis = ManagementFactory.getMemoryPoolMXBeans(); for(int i=0; i< lis.size();i++) { System.out.println( lis.get(i).getName() +" "+ lis.get(i).getUsage().getUsed() ); } } }