ex
oldIndex.delete();
newIndex.renameTo(oldIndex);
// load the new index to RAMDirectory from harddisc
SearchTables.reloadIndex();
Thanks for your help,
Jan Philipp Seng, Germany, Aachen
> : 2) I don't see the code to close your statement, connection, and
> : ResultSet. Those typically go to a finally block.
>
> I'm 85% sure that's the memory leak right there... in absence of a
> good memory profiler, have you tried commenting out all of the Lucene
> related code, to make sure th
freeMemAfter = Runtime.getRuntime().freeMemory();
> System.out.println("Total Memory : " +
> Runtime.getRuntime().totalMemory());
> System.out.println("Max Memory: " +
> Runtime.getRuntime().maxMemory());
> System.out.println("Free Memory After :