Sonatype Nexus Repository System Requirements

Sonatype Nexus Repository System Requirements

Important
Starting with Nexus Repository Manager 3.87.x, the AWS SDK used for S3 blob stores has been upgraded from version 1.12.658 to 2.33.5 because the AWS SDK for Java 1.x reaches end of life on December 31, 2025. This change impacts users of non-AWS S3–compliant blob stores. Customers using S3-compatible storage should review compatibility with AWS SDK for Java 2.x when upgrading.

This topic covers system requirements for the Nexus Repository.

Sonatype's product development lifecycle is explained in Sonatype Sunsetting Information.
The supported versions are listed on the version status page.

Sonatype Nexus Repository supports the Linux, Windows, and MacOS operating systems. Sonatype has not tested nor supported other operating systems.

We recommend using a dedicated operating system user account to run each unique process on a given host. The Nexus Repository process user must be able to create a valid shell. Do not run Nexus Repository as the root user.

Nexus Repository consumes more file handles than the default value allowed by Linux or MacOS operating systems. Some container platforms (e.g., Amazon ECS) override the default limits set on the container. Running out of file descriptors leads to data loss. Increase the limit on the number of open file descriptors for the user running Nexus Repository.

See the topic, Adjusting the File Handle Limits for instructions on how to do this in your environment.

Our policy is to support the most recent modern browser version of your supported OS at the time of the Nexus Repository version release date.

Sonatype does not officially support nor recommend using virus scanners with Nexus Repository. We have seen 10x longer startup times on Windows servers and significant performance impact when using a virus scanner to monitor the installation directory.

Supported Java Versions

Nexus Repository is tested on and supports OpenJDK and requires Java 21. Nexus Repository is compatible with both Intel and AMD CPU architectures.

As of release 3.78.0 the Nexus Repository bundle includes the recommended JVM.

See Java Compatibility Matrix.

CPU

Performance is primarily bounded by IO (disk and network) rather than CPU. Available CPUs will impact longer-running operations and thread count. See the thread allocation algorithms of the web container.

See the Memory Recommendations by Profile Size section for CPU recommendation by deployment.

Memory Requirements

At a high level, expect to allocate up to two-thirds of available RAM to Nexus Repository; leaving one-third of RAM available for system processes and buffers.

Memory requirements vary by profile size. There is not a single defined requirement due to the complexity of all possible use cases. The section below outlines the memory and CPU recommendations for each node in small, medium, large, and very large profiles.

Highly available deployments must meet these requirements for all nodes in the cluster.

See our Nexus Repository Memory Overview topic for details about the different types of memory that Nexus Repository uses and examples of memory-related Java requirements.

Nexus Repository Recommendation by Profile Size

Profile Size Profile Description CPUs RAM Local Blob Storage
#### Small 20,000 requests/hour
200,000 requests/day
embedded H2 database
2 8GB 20GB
#### Medium 100,000 requests/hour
1,000,000 requests/day
external PostgreSQL database
4 8GB 200GB
#### Large 1,000,000 requests/hour
10,000,000 requests/day
external PostgreSQL database
High Availability deployment
4 per node 16GB per node 200GB or more
#### Very Large 2,000,000 requests/hour
20,000,000 requests/day
external PostgreSQL database
High Availability deployment
8 per node 32GB per node 10TB or more

Database Requirements

Nexus Repository supports two database options: an embedded H2 database or an external PostgreSQL database.

Embedded H2 Database Limitations

New installations are configured to use an H2 database by default. Nexus Repository running with the embedded H2 database supports up to 200,000 requests per day or 100,000 components.

Workloads beyond these limitations are not supported. Container-based deployments are not supported in H2 deployments.

PostgreSQL Requirements (Recommended)

We recommend all deployments use an external PostgreSQL database. For best performance, the Nexus Repository should have a low-latency connection to the database. When using a cloud database, the Nexus Repository node must be in the same region.

PostgreSQL Recommendation by Profile Size

Use the following PostgreSQL sizing recommendations with the Nexus Repository cloud-native reference architecture size profiles.

Profile Size Request Throughput Baseline PostgreSQL Instance PostgreSQL CPU PostgreSQL Memory (GiB per node)
Extra-Small (XS)
XS AWS Architecture
100 rps sustained with spikes of 150–200 rps Embedded H2 Embedded H2 Embedded
Small (S)
S AWS Architecture
500 rps sustained with spikes of 900–1,200 rps db.r8g.large 2 16
Medium (M)
M AWS Architecture
4,000 rps sustained with spikes of 6,000–8,000 rps db.r8g.2xlarge (HA) 8 64
Large (L)
L AWS Architecture
8,000 rps sustained with spikes of 12,000–16,000 rps db.r8g.4xlarge (HA) 16 128
Extra Large
XL AWS Architecture
15,000 rps sustained with spikes of 50,000 rps db.r8g.8xlarge (HA) 32 128

Configuring PostgreSQL

Compatible PostgreSQL Providers

Nexus Repository is compatible with the following PostgreSQL providers:

PostgreSQL with Pgpool is Not Supported

We do not support the pgpool or other tools to load balance requests to multiple PostgreSQL servers. When deploying Nexus Repository and using PostgreSQL, we support the AWS, Azure, and GCP abilities to run PostgreSQL in multiple availability zones. When deploying your own PostgreSQL servers, we recommend using Log Shipping or Streaming Replication to keep the non-primary server up to date. We do not support reading from a stand-by server during normal operations.

PostgreSQL Database Duplicate Key Value Error

After upgrading the PostgreSQL host operating system you may see exceptions with a specific message reporting duplicate key value violations. Refer to the support article " PostgreSQL Index Corruption - duplicate key violation errors" for details on remediating the issue.

Required PostgreSQL Database User Permissions

The database user needs to be the owner of the database. Operations such as upgrades or schema changes require ownership privileges. Using a non-owner user is not tested or supported by Sonatype.

Required Trigram Module for PostgreSQL Database

Nexus Repository 3 instances using PostgreSQL databases must have the pg_trgm (trigram) module. This module may not be installed with PostgreSQL by default on all Linux distributions, which will result in an exception when attempting to upgrade. See Installing the Trigram Module for installation instructions.

Advanced Database Memory Tuning

See Advanced Database Memory Tuning for examples of advanced database memory tuning based on different profile sizes.

Legacy Orient Database

Sonatype Nexus Repository's legacy embedded OrientDB database entered extended maintenance in August 2024.

Disk Space Requirements

Required disk space for Nexus Repository varies by deployment size and complexity. You must have at least 4GB available disk space at all times; if available disk space drops below 4GB, the database will switch to read-only mode. Sonatype Nexus Repository requires disk space for two primary directories:

File Systems

Nexus Repository has two primary storage requirements:

File System Embedded data Blob Stores
#### Local storage
A good choice for both embedded data and binary storage.

Supported

Supported
#### NFS v4
A common protocol for network-attached storage among Nexus Repository deployments.
Use NFSv4.1 or higher for the work directory in small deployments. It's not sufficient for anything larger.

Not Recommended

Supported
#### Amazon EBS
EBS is a viable choice for both embedded data and binary storage.

Supported

Supported
#### Amazon EFS
EFS isn't sufficiently responsive for embedded data but is appropriate for binary storage.
EFS binary storage may not provide the necessary throughput for heavy workloads in all configurations.

Unsupported

Supported
#### Amazon S3
S3 semantics aren't suitable for embedded data, but S3 is popular for binary storage.

Unsupported

Supported
#### SMB, CIFS
Problems are common with SMB or CIFS-mounted devices for embedded data.

Unsupported

Supported
#### Azure Blob Storage
Available for blob storage from Nexus 3.30.0 Pro.
We support the premium performance block blob option.

Unsupported

Supported
#### Azure Files
Issues with file handles have been observed when accessing embedded data over SMB.

Unsupported

Supported
#### S3-Compatible
Any fully compatible on-prem S3 implementation that supports the latest AWS SDK version 2.x can be used as a blob store.
Note that performance characteristics may differ from AWS S3; we recommend working with your vendor to ensure sufficient performance for your desired workload.

Unsupported

Supported
#### Google Cloud Storage
Available for blob storage from Nexus 3.74.0 Pro.

Unsupported

Supported
#### Google Cloud Filestore
Available for embedded data from Pro Version 3.74.0

Supported

Unsupported
#### NFS v3
Numerous customers have experienced inadequate performance with NFS v3.

Unsupported
#### GlusterFS
Split-brain problems and slow performance are common.

Unsupported
#### FUSE
FUSE-based user-space filesystems are known to be unreliable for Nexus Repository.

Unsupported

File System Optimization
You may use the following Nexus Repository 2 optimization suggestions for Nexus Repository 3 file system performance, however we recommend to use at your own discretion. Consider the noatime option for your work directory mounts and limit the symbolic links as they increase the overhead when paths need to be resolved to an absolute file path.