Memory management

The process of managing memory in the virtual machine (VM) is handled by the allocator and the garbage collector. These components operate on an area of memory that is reserved for VM processing, called the Java heap. The allocator is responsible for assigning areas of the heap for Java objects. The garbage collector reclaims heap space by removing objects when they are no longer required.

Read the rest of this section to learn more about the following items:
  • How to size the Java heap for your application.
  • How to enable verbose GC tracing and use the output to troubleshoot problems with memory management.
Read the Memory Management section of the OpenJ9 user documentation to learn more about the following items:
  • How the allocator manages the storage of Java objects on the heap.
  • How the garbage collection (GC) process works, including details about the different GC operations.
  • How the Java heap is configured to achieve different memory management strategies.
  • Which GC policies are provided by OpenJ9 for different application workloads and service-level agreements.
  • How to enable verbose GC logging and use the output to troubleshoot problems with memory management.