I'm seeing the following when looking at a heap dump in Eclipse MAT from a JVM with a 3GB Xmx on a node that only has alfresco.war in the tomcat webapps.
~2000 instances of org.apache.lucene.store.RAMFile 30%
~33000 instances of org.apache.lucene.index.TermInfosReader$ThreadResources 25% (680MiB)
1 instance of org.alfresco.repo.search.impl.lucene.index.IndexInfo 16% (450MiB)
~37 instances of net.sf.ehcache.Cache 12% (330MiB)
It appears that lucene is taking at least 71% of the 3GB. This is after two weeks on a system with maybe just a few thousand documents, of varied size and with relatively light use. Restart the alfresco service and in another two weeks we're in the same state. Within a few hours of the heap dump we hit OutOfMemoryErrors for java heap space.
I'm assuming ehcache using a few hundred MB is normal and the issue is within lucene? Any help would be appreciated.