how to free memory after index ist build.

2005-08-02 Thread Jan Philipp Seng
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

Re: how to free memory after index ist build.

2005-08-03 Thread Jan Philipp Seng
> : 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

Re: how to free memory after index ist build.

2005-08-03 Thread Jan Philipp Seng
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 :