lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thturk <tahatur...@hotmail.com>
Subject Release the RAM
Date Thu, 25 Oct 2018 13:32:56 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message