Jenkins Server Requirements Checklist: Java Version, JENKINS_HOME Storage and Backups

Most Jenkins outages are not about CPU. This checklist covers the Java support policy, JENKINS_HOME disk, executors and the backup layout the Jenkins handbook recommends.

A Jenkins controller needs more than CPU and RAM: it needs a Java version the Jenkins project still supports (Java 21 or 25 today), a disk with room for JENKINS_HOME to grow, no build executors of its own, and a backup that copies the configuration while keeping secrets/master.key somewhere else. The official minimum is 256 MB RAM and 1 GB of disk, but the Jenkins documentation recommends 4 GB or more RAM and 50 GB or more disk for a small team.

For sizing CPU and memory across the controller and agents, see our earlier guide to Jenkins CI/CD server requirements and sizing. This post covers the requirements that cause trouble after launch.

The checklist

  1. Java 21 or Java 25 installed before Jenkins.
  2. At least 4 GB RAM and 50 GB disk for a small team's controller.
  3. JENKINS_HOME on a volume you can grow or snapshot.
  4. Zero executors on the controller; builds run on agents.
  5. A backup of JENKINS_HOME that excludes workspaces and keeps master.key apart.
  6. A documented restore, tested once.

Hardware: minimum versus useful

SetupRAMDiskSource
Bare minimum256 MB1 GBJenkins Linux install guide
Running in Docker-10 GBJenkins Linux install guide
Small team4 GB+50 GB+Jenkins Linux install guide
Large controllersUp to 70 GB+ in very large installsGrows with history and pluginsJenkins hardware recommendations

The hardware recommendations page explains why the range is so wide: memory depends on the number of jobs, builds and connected nodes, and each build node connection uses two to three threads and about 2 MB or more of memory. Heavy use of the web interface also needs CPU on the controller.

Java: the requirement that breaks upgrades

Jenkins publishes a Java support policy. Java 21 is supported from LTS 2.479.1 (October 2024) with planned end of support in September 2027, and Java 25 from LTS 2.541.1 (January 2026) with planned end of support in September 2029. Java 17 is no longer supported; its final LTS release was 2.541.3 in March 2026. The policy is blunt that an unsupported Java version means the controller will not run.

The Linux install guide says to install Java first, because Jenkins may fail to start if Java is added afterwards:

sudo apt update
sudo apt install fontconfig openjdk-21-jre
java -version

Then add the debian-stable repository with its signing key as the guide shows and run sudo apt install jenkins. The service is jenkins under systemd, it listens on port 8080 by default, and the first admin password is in /var/lib/jenkins/secrets/initialAdminPassword.

The Java that runs Jenkins and the Java your projects build with can differ. Install build JDKs on the agents, not the controller, and check the few plugins with stricter Java needs before you upgrade.

JENKINS_HOME: plan for growth

The controller keeps configuration, build history and plugins in JENKINS_HOME (/var/lib/jenkins on a package install). The backup guide notes that archived artifacts under jobs/ can be very large. Three habits keep the disk under control:

  • Set build discarders on every job so old builds and artifacts age out.
  • Store large release artifacts in an artifact repository or object storage, not in Jenkins.
  • Put JENKINS_HOME on a volume that can be grown, and that supports snapshots if you want consistent backups.

Executors: none on the controller

The hardware recommendations page advises against running builds on the controller, since builds can overload its CPU or memory and take Jenkins down. Set the built-in node's executors to 0 and run all work on agents. Make agents fungible, meaning easily replaceable: generic x86 machines with enough memory for your builds, configured from images, containers or configuration management rather than by hand.

Backups: what to copy and what to keep apart

Back upUsually skipStore separately
config.xml and other root *.xml filesworkspace/ (check out again from SCM)secrets/master.key
jobs/ build records, plus artifacts you needwar/, cache/, tools/
Plugin packages (*.hpi, *.jpi) in plugins/Unpacked plugin subdirectories

The controller key protects the credentials stored in secrets/. The Jenkins handbook says never to include it in a regular backup, because anyone with both the key and the backup can read your credentials. Copy it once to a secure place, separate from the other backups; it is small and rarely changes.

For the method, the handbook ranks filesystem snapshots (LVM, btrfs, ZFS) as the most consistent and fastest, names thinBackup as the one maintained open-source backup plugin, and describes a cron script that copies the needed files to a timestamped location and then to remote storage.

Worked example: a 10-developer team

Start the controller on a KVM VPS with at least the recommended 4 GB RAM and 50 GB disk, Java 21, and zero executors. Run two agents on separate VPS instances sized for your heaviest build, so a runaway test suite cannot starve the controller. Snapshot or script-back up JENKINS_HOME nightly to another node, with master.key stored on its own. Revisit the plan when the controller's memory use climbs steadily, when builds queue for agents, or when the disk passes about 70% full.

StreamData's KVM VPS range runs from 1 GB to 128 GB RAM on RAID NVMe for controllers and agents, with 9950X VPS plans for build-heavy agents and dedicated servers when a build farm needs a whole machine. Backups are the customer's responsibility unless a written order includes them; see the policies linked from the company page.


Sources