DEV Community

Discussion on: Off-heap memory in Java

Collapse
 
jeissonflorez29 profile image
Jeisson Florez

Hi Darius, thanks for reading and commenting.

It's true that managing memory out of the "standards" that the JVM provides, brings other concerns and problems to think about, however off-heap is not a replacement of the heap memory for all cases and should be something to evaluate carefully depending on the case.

As I mentioned in the post it could be a good try when we are dealing with a lot of data stored in memory, or even when that data exceeds the physical memory and using disk is an option.

Finally, there are many options for addressing design problems and I just wanted to show one that I found interesting IMHO.