Hi Sanne.
Tried the not shared reader and that is actually worse. I made 5 queries and i get a OOM exception. So it kind of fast forwarded the problem. Please note i am using lucence 2.9.2 with HS 3.1.1. I am going to step up to the latest versions of HS and see if the problem persists.
A quick look at my heap and you can see who is hogging the memory
Class Name | Shallow Heap | Retained Heap | Percentage
----------------------------------------------------------------------------------------------------------------------------------
org.apache.catalina.loader.WebappClassLoader @ 0x51110340 | 168 | 867.624.864 | 93,49%
|- class org.apache.lucene.search.FieldCache @ 0x8f30f8b0 | 48 | 861.936.056 | 92,87%
| |- org.apache.lucene.search.FieldCacheImpl @ 0x54d3e3f8 | 16 | 861.935.928 | 92,87%
| | '- java.util.HashMap @ 0x54d3f038 | 40 | 861.935.912 | 92,87%
| | '- java.util.HashMap$Entry[16] @ 0x54d40b00 | 80 | 861.935.872 | 92,87%
| | |- java.util.HashMap$Entry @ 0x54d37f50 | 24 | 861.933.992 | 92,87%
| | | '- org.apache.lucene.search.FieldCacheImpl$StringIndexCache @ 0x54d3e3a8| 16 | 861.933.968 | 92,87%
| | | '- java.util.WeakHashMap @ 0x54d3efb8 | 48 | 861.933.952 | 92,87%
| | | |- java.util.WeakHashMap$Entry[16] @ 0x54d40a80 | 80 | 718.278.240 | 77,39%
| | | |- java.util.WeakHashMap$Entry @ 0x54d37e78 | 40 | 143.655.632 | 15,48%
----------------------------------------------------------------------------------------------------------------------------------
Hopefully you can replicate it on your side.
Quote:
Out of curiousity, did you try out the JGroups baased backend?
No I havent, time is against me im afraid so i wont be able to give it a go.