lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Index keeps growing, then shrinks on restart
Date Tue, 11 Nov 2014 09:26:58 GMT
Telling us the version of lucene and the OS you're running on is
always a good idea.

A guess here is that you aren't closing index readers, so the JVM will
be holding on to deleted files until it exits.

A combination of du, ls, and lsof commands should prove it, or just
losf: run it against the java process and look for deleted files.  If
you're on unix that is.


On Mon, Nov 10, 2014 at 11:03 PM, Rob Nikander <> wrote:
> Hi,
> I have an index that's about 700 MB, and it grows over days to until it
> causes problems with disk size, at about 5GB.  If the JVM process ends, the
> index shrinks back to about 700MB, I'm calling IndexWriter.commit() all the
> time.  What else do you call to get it to compact it's use of space?
> thank you,
> Rob

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

View raw message