Disable memory manager to avoid long full gc
I'm seeing large amounts of memory being consumed by discarded BoboIndexReaders in my application.
I'm wondering if this has to do with this change? In my scenario I'm refreshing BoboIndexReaders (discarding old, creating new) every few minutes to make sure that the results are up to date. A heap analysis shows all the BoboIndexReaders as unreachable but there are lots and lots of them
it's not related. this one is on query time, yours is on indexing time.
btw. if you consume a large amount of data, you will see these unreachable readers, but eventually they will disappear after gc.
Marc : if you've not resolved your issue, could you share the JVM spec you are using and the Java Opts you set?
I haven't resolved the issue but I believe it's unrelated to the jvm spec and fundamental to the problem I have integrating Bobo with Hibernate Search, which I use for indexing. Because I haven't been able to create a transparent integration between the two (with Bobo picking up index changes from Hibernate Search), I'm left with reopening BoboIndexReaders in a timed fashion (every two minutes). The result is that discarded Bobo Indexreaders take up ever more memory until a garbage collection cycle is needed. The more memory I add, the bigger the delay.