Skip to main content

Sonatype Nexus Repository System Requirements

This topic covers system requirements for the Sonatype Nexus Repository.

  • Supported Nexus Repository Versions

    Sonatype's product development lifecycle is explained in Sonatype Sunsetting Information.

    The supported versions are listed on the version status page.

  • Supported Operating Systems

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

  • Use a Dedicated User Account

    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.

  • Required File Handle Limits

    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.

CPU

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

See the Memory Recommendations by Profile Size section for suggested CPU configurations by deployment profile.

Memory Requirements

At a high level, expect to allocate up to two-thirds of available RAM to Sonatype Nexus Repository; and leave at least one-third of RAM available for all other operating system processes and buffers.

Memory requirements vary by profile size. Due to use case complexity, there is no single defined requirement. The section below outlines Sonatype memory recommendations for small, medium, large, and very large profiles.

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.

Memory Suggestions by Profile Size

The profiles defined in the table below help gauge the typical memory requirements needed for a dedicated server host running Sonatype Nexus Repository.

Nexus Repository Memory Recommendations by Profile Size

Profile Size

Profile Description

CPUs

Disk Size (Blob)

RAM

Small

  • < 20 repositories

  • < 20GB total blob store size

  • single repository format type

8

20GB

8GB

Medium

  • < 50 repositories

  • < 200GB total blob store size

  • a few repository formats

8+

200GB

16GB

Large

  • < 200 repositories

  • > 200GB total blob store size

  • diverse repository formats

  • Note: Deployments of this scale should use a PostgreSQL database

12+

200GB or more

32GB

Very Large

  • 200+ repositories

  • ~10TB total blob store size

  • diverse repository formats

  • Note: Deployments of this scale should use a PostgreSQL database

16+

10TB or more

64GB

Postgres Server Recommendations by Profile Size

Profile Size

Profile Description

CPUs

Disk Size

RAM

Small

  • < 20 repositories

  • < 20GB total blob store size

  • single repository format type

4

100GB

16GB

Medium

  • < 50 repositories

  • < 200GB total blob store size

  • a few repository formats

8

200GB

32GB

Large

  • < 200 repositories

  • > 200GB total blob store size

  • diverse repository formats

16

200GB or more

32GB or more

Very Large

  • 200+ repositories

  • ~10TB total blob store size

  • diverse repository formats

16

300GB or more

64GB

Supported Java Versions

Sonatype Nexus Repository is tested on and supports OpenJDK.

As of release 3.71.0, Nexus Repository requires Java 17.

Nexus Repository is compatible with both Intel and AMD CPU architectures.

For historic Java support information, see our Java Compatibility Matrix.

For information on obtaining a suitable JRE, see Obtaining and Verifying Suitable JRE.

Database Requirements

Sonatype Nexus Repository supports two database options: an embedded H2 database or an external PostgreSQL database. Using a PostgreSQL database requires a paid Pro license. New installations use an H2 database by default.

Important

Sonatype Nexus Repository's legacy embedded OrientDB database entered extended maintenance in August 2024. All Sonatype Nexus Repository customers are highly encouraged to migrate off of OrientDB. However, if you are unable to migrate, note that you will need to remain on the 3.70.x version line. Versions 3.71.0 and above do not support OrientDB.

H2 Requirements

Sonatype Nexus Repository supports 20,000 requests-per-day / 100,000 components in H2 deployments. Workloads beyond these limitations are not supported. Container-based deployments are also not supported in H2 deployments.

Temporary Directory

The temporary directory at $data-dir/tmp must not be mounted with noexec or the Nexus Repository startup fails with java.lang.UnsatisfiedLinkError message.

Failed to map segment from shared object: Operation not permitted

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:

  • Application Directory - Size varies slightly per release; as of August 2024, it is around 390MB. It is normal to have multiple application directories installed on the same host over time as you upgrade.

  • Data Directory - Size varies based on complexity and formats. Plan for substantial disk space. Note that formats like Docker and Maven can use very large amounts of storage (500GB easily).

File Systems

Nexus Repository stores multiple kinds of data and has two primary storage requirements to keep in mind when selecting a file system:

  1. Embedded data (H2, OrientDB (Legacy), Elastic Search) requires very responsive, fast storage, ideally local disk

  2. Blob storage (component binaries), which requires moderately responsive, high-capacity storage

The table below outlines various file systems and whether Nexus Repository can use them for embedded data and/or blob storage:

File System

Embedded data

Blob Stores

Comment

Local storage

(tick)

Supported

(tick)

Supported

Local storage is a good choice for both embedded data and binary storage.

NFS v4

(error)

Not Recommended

(See Comment)

(tick)

Supported

  • Most common protocol for network attached storage among Nexus Repository deployments.

  • NFSv4.1 or higher can be used for the work directory in small lightly loaded installations, but we have found that it does not provide sufficient performance for anything larger. In general it should be avoided for the work directory.

Amazon EBS

(tick)

Supported

(tick)

Supported

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

Amazon EFS

(error)

Unsupported

(tick)

Supported

(See Comment)

  • EFS isn't sufficiently responsive for embedded data, but is appropriate for binary storage.

  • EFS binary storage may not provide necessary throughput for heavy workloads in all configurations.

Amazon S3

N/A

(tick)

Supported

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

SMB, CIFS

(error)

Unsupported

(tick)

Supported

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

Azure Blob Storage

N/A

(tick)

Supported

  • Available for blob storage from Nexus 3.30.0 Pro.

  • We support the premium performance block blob option.

  • For performance reasons, the Azure blob store should be in the same Azure region as the Nexus Repo installation.

Azure Files

(error)

Unsupported

(tick)

Supported

Issues with file handles have been observed when accessing embedded data over SMB.

S3-Compatible

(error)

Unsupported

(tick)

Supported

(See Comment)

  • Any fully compatible S3 implementation that supports the AWS SDK version 1.12.658 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.

Google Cloud Storage

N/A

(tick)

Supported

Available for blob storage from Nexus 3.74.0 Pro.

Google Cloud Filestore

(tick)

Supported

N/A

Available for embedded data from Nexus 3.74.0 Pro.

NFS v3

(error)

Unsupported

Numerous customers have experienced inadequate performance with NFS v3.

GlusterFS

(error)

Unsupported

Split-brain problems and slow performance are common.

FUSE

(error)

Unsupported

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

File System Optimization

We also have some optimization suggestions to use at your discretion. Also consider the noatime option for your Nexus Repository work directory mounts and limit the symbolic links used as this will cause increased overhead whenever paths need to be resolved to an absolute file path.

Supported Web Browser

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.

Google Chrome
Mozilla Firefox - issue with uploading licenses using Firefox ESR 
Apple Safari
Microsoft Edge