import Dic.*; import java.lang.management.*; public class ExeSearchDic { public static void main(String args[]) { java.util.List lis = ManagementFactory.getMemoryPoolMXBeans(); for(int i = 0;i< lis.size();i++) { System.out.println("lis " + lis.get(i).getUsage().getUsed() +" name " +lis.get(i).getName()); } Index ind = new Index(); IndexData dat = ind.searchFile(args[0],args[1]); if(dat != null) { System.out.println("answer"+dat.getID()+" : "+dat.getVolumu()); } lis = ManagementFactory.getMemoryPoolMXBeans(); for(int i = 0;i< lis.size();i++) { System.out.println("lis " + lis.get(i).getUsage().getUsed() +" name " +lis.get(i).getName()); } System.out.println("Free"); for(int n= 0;n<1;n++) { ind.evacuate(); System.out.println("sf"); lis = ManagementFactory.getMemoryPoolMXBeans(); for(int i = 0;i< lis.size();i++) { System.out.println("lis " + lis.get(i).getUsage().getUsed() +" name " +lis.get(i).getName()); } } } }