Nexus Repository Memory Overview
The sections below explain the different configurable memory types, Java arguments for managing certain memory configurations, and examples of using those Java arguments.
Configurable Memory Types
The following table describes the configurable memory types for Sonatype Nexus Repository deployments; visit the Configuring the Runtime Environment page to learn how to change the default memory settings.
Memory Type | Description | Notable Requirements |
---|---|---|
Java Virtual Machine (JVM) Heap Memory | Stores all the objects created by the Java application. The JVM manages this space, and a special process called garbage collection automatically cleans up unused objects to free up memory. |
|
Host or OS Physical Memory (RAM) |
|
|
JVM Direct Memory |
|
|
Example Maximum Memory Configurations
The tables below provide example memory configurations using the Java arguments explained in the memory-related Java arguments section.
Physical/RAM Memory | Example Max Memory Configuration for PostgreSQL | Example Max Memory Configuration for H2 | Example Max Memory Configuration for OrientDB |
---|---|---|---|
8GB | -Xms5G -Xmx5G | -Xms5G -Xmx5G | -Xms2703M -Xmx2703M -XX:MaxDirectMemorySize=2703M |
16GB | -Xms11G -Xmx11G | -Xms11G -Xmx11G | -Xms4G -Xmx4G -XX:MaxDirectMemorySize=6717M |
32GB | -Xms24G -Xmx24G | Deployments of this scale should use PostgreSQL | Deployments of this scale should use PostgreSQL |
64GB | -Xms47G -Xmx47G | Deployments of this scale should use PostgreSQL | Deployments of this scale should use PostgreSQL |