Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Jenkins Difficulty: Advanced ClaudeChatGPT

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

More Jenkins prompts & error guides

Browse every Jenkins prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.