OK, I will show the scene.
1 OS : Redhat5
2 JVM 64bit jdk1.7
3 Lucene4.0
4 JVM Flag : -Xms512m -Xmx1576m
5 Other app don't occupy too much memory
My Code is as follow:
public synchronized IndexSearcher openSearcher() {
if (QueryUtil.indexExist(SearchEnv.searchEnv.indexDir)
Hi,
4 JVM Flag : -Xms512m -Xmx1576m
5 Other app don't occupy too much memory
As said by Ian, read this blog post and you will understand that Lucene is not
eating your memory. The RES column in TOP shows the actual memory usage
(resident memory):
PID USER PR NI VIRT RES SHR S