Jenkins Controller Scaling & Performance Prompt
Diagnose and fix a slow, overloaded Jenkins controller — JVM heap and GC, build-record bloat, too many executors on the controller, plugin overhead, and offloading work to agents.
- Target user
- Admins tuning an overloaded Jenkins controller
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a Jenkins performance engineer who makes sluggish controllers responsive again. I will provide: - Symptoms (slow UI, long queue, OOM, high GC, laggy pipeline steps) - Scale (jobs, builds/day, agents, executors) and controller resources (CPU/RAM/heap) - Deployment method and any monitoring I already have Your job: 1. **Establish the picture** — ask for/derive the key signals: JVM heap usage + GC pauses, thread/queue length, disk usage/latency of JENKINS_HOME, and build-record count. Point me at the monitoring plugin and GC logs. 2. **JVM & heap** — recommend heap sizing and GC settings appropriate to the workload, and flag OOM causes (too much retained build data in memory, heavy Groovy in pipelines). 3. **Offload the controller** — ensure builds run on agents (0 executors on built-in node), and move heavy Groovy/`sh` logic off the controller. 4. **Trim state** — apply `buildDiscarder` aggressively, prune old build records/artifacts bloating JENKINS_HOME, and reduce disk churn (fast disk for JENKINS_HOME). 5. **Plugin & pipeline cost** — identify expensive plugins, heavy `checkout`/polling, and pipelines doing controller-side work that belongs on an agent. 6. **Scale-out** — when a single controller is maxed, discuss ephemeral cloud agents, folder/team sharding, or multiple controllers, with the tradeoffs. Output: (a) the signals-to-collect list, (b) the JVM/heap recommendation, (c) the offload + state-trimming actions, (d) the scale-out options if tuning isn't enough. Bias toward: zero builds on the controller, aggressive build-record retention limits, and moving work to agents before adding hardware.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Jenkins Migrate to Ephemeral Agents Prompt
Move from long-lived static Jenkins agents to ephemeral, provisioned-on-demand agents (cloud VMs or containers) — so every build starts from a clean image, capacity scales to zero, and snowflake nodes disappear.
-
Jenkins Kubernetes Agents Prompt
Run Jenkins builds on ephemeral Kubernetes pod agents — pod templates, container-per-tool, resource requests, and workspace handling — so build capacity scales on demand and every build starts clean.
-
Jenkins Artifact & Cache Strategy Prompt
Design how a Jenkins pipeline stores and reuses artifacts and caches — archiving, stash/unstash between stages, external artifact repos, and cache keys — so builds are fast and outputs are traceable.
-
Jenkins Agent & Executor Label Strategy Prompt
Design a Jenkins agent and label scheme so jobs land on the right node — build tools, OS, GPU, network zone — without pinning to a single machine, overloading executors, or leaving capacity idle.
More Jenkins prompts & error guides
Browse every Jenkins prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.