Java 10 Enhancements: Allocate Heap on NV‑DIMM with -XX:AllocateHeapAt
JEP 316 - Heap Allocation on Alternative Memory Devices
With this enhancement in Java 10, now user can specify an alternative memory device, like 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 like -Xmx, -Xms continue to work.
Java
- Dynamic Memory Allocation in C: Mastering malloc, calloc, realloc, and free
- Master Java Operators: Types, Syntax, & Practical Examples
- Mastering Java's super Keyword: Advanced Usage & Practical Examples
- Mastering Java Interfaces: Concepts, Implementation, and Best Practices
- Mastering Java Try‑with‑Resources: Automatic Resource Management Explained
- Java Annotations Explained: Types, Placement, and Practical Examples
- Dynamic Memory Allocation in C: Mastering malloc, calloc, realloc, and free
- Understanding Java Garbage Collection: How It Works & Why It Matters
- Java Stack vs. Heap: A Practical Memory Allocation Guide
- Java 10 Enhancements: Allocate Heap on NV‑DIMM with -XX:AllocateHeapAt