lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thturk <>
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

ramDir = new RAMDirectory(, IOContext.READ);
reader =;
searcher = new IndexSearcher(reader);

searcher = null;
reader = null;
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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message