English 中文(简体)
Java 10 - Heap Allocation
  • 时间:2024-12-22

Java 10 - Heap Allocation

Previous Page Next Page  

JEP 316 - Heap Allocation on Alternative Memory Devices

With this enhancement in Java 10, now user can specify an alternative memory device, pke NV-DIMM to HotSpot VM to allocation the java heap space. User need to pass a path to the file system using a new option -XX:AllocateHeapAt.


-XX:AllocateHeapAt=~/etc/heap

This option takes file path and do a memory mapping to achieve the desired result. Other heap flags pke -Xmx, -Xms continue to work.

Advertisements