I want to release ram when i want , i have tired to close created reader, ram directory, and searcher given in below;
ramDir = new RAMDirectory(FSDirectory.open(indexDir), IOContext.READ); reader = DirectoryReader.open(ramDir); searcher = new IndexSearcher(reader); searcher = null; reader.close(); reader = null; ramDir.close(); ramDir = null; but it didnt released Ram ,and when i wantto initialize app via tomcat its loaded all memory then write to disk which i dont want to have Is there anyone know what is the best way for this . Thanks for your help. -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org