> He is not having a problem with OOM. He got the OOM because he lowered
> the heap to try and help GC.

That is very confusing!!!

Lowering heap helps GC? Someone mentioned it in this thread, but my
viewpoint is completely opposite.

1. Some RAM is needed to_be_reserved for FieldCache (it will be populated
over time, kind of "memory leak" not-well-documented).
2. Some RAM is needed for the rest of application.

And, some pieces of code frequently need contiguous memory (100 bytes? 1000
bytes?), so that GC-optimize will run even if memory is more than
(theoretically) enough.

So that... have even more memory.


I had similar problems with 8Gb; I don't have any problem with 16Gb. And I
never waste time on GC optimization, server was running without OOM and any
performance issues during almost a year.


>> SEVERE: java.lang.OutOfMemoryError: Java heap space
>>
org.apache.lucene.search.FieldCacheImpl$10.createValue(FieldCacheImpl.java:3



Reply via email to