lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Memory Leak IndexSearcher
Date Mon, 03 Jul 2006 17:29:31 GMT
Well, *assuming* that you're working in Java, you can't predict very much
about when the garbage collector actually goes about freeing memory.
Depending on how memory is measured, you may or may not be getting an
accurate count.

I wonder what would happen if you allowed the JVM only a *little* more
memory than you need. I suspect that you'd see memory increase to the
maximum then fluctuate near the max forever as the gc would then be forced
to collect the memory that was being marked as free (but not necessarily
returned to the heap by the GC promptly) by re-opening the IndexSearcher.

Hope this helps

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message