I have problems with OOM with java.util HashMap, so I'm looking for alternatives to HashMap for memory compatible with standard Java Hashmap. I tried Trove and it improved a bit, but still ends with OOM from time to time. I can accommodate some speed loss if memory is efficient.
I am not looking for a DB. HashMap file implementations are also great as long as they work offline. I keep primitives like int and byte.
Also, please indicate if you have any experience and what improvement you had in terms of memory.
source share