mmap is modern? Lol. I used mmap in Java back in 2013 to offheap large matrices in our regression engine. Mmap probably exists long before that.
Edit: and yes, the JVM only reported a few hundreds MBs used in the heap. In reality, the memory mapped file is several GBs in size.