Memory mapped collections in Java
问题 I'm filling up the JVM Heap Space. Changing parameters to give more heap space to the JVM, or changing something in my algorithm in the code not to use so much space are two of the most recommended options. But, if those two have already been tried and applied, and I still get out of memory exceptions, I'd like to see what the other options are. I found out about this example of "Using a memory mapped file for a huge matrix" and a library called HugeCollections which are an interesting way to