Mastering Java 11
上QQ阅读APP看书,第一时间看更新

Heap allocation on alternative memory devices

The HotSpot virtual machine, as of Java 10, supports non-DRAM memory devices. We can use the following option to allocate the Java object heap in alternative memory devices:

XX:AllocateHeapAt=<file system path>

Location conflicts and security concerns can be important to address when allocating memory using alternative device filesystems. Specifically, ensure that the proper permissions are used and that the heap is wiped upon application termination.