Resolution
The load usually comes from API requests, not from your deployments. Restart Octopus Server with your integrations paused, watch what makes CPU climb again, and fix that source. In most cases, it's a deployment with very large build information, or a script that searches or polls the tasks endpoint in a tight loop.
Symptom
- Octopus Server CPU stays at or near 100%.
- The web portal and API respond slowly or time out.
- Tasks stay Queued and don't start, or stay Cancelling and don't stop.
- Restarting the Octopus Server service helps for a few minutes, then CPU climbs again.
- If rate limiting is turned on, scripts or integrations get HTTP 429 Too Many Requests responses.
The Octopus Server log (OctopusServer.txt) or the Windows Application event log shows lines like these:
2026-05-05 10:44:48.2929 10592 114 FATAL ThreadPool exhausted for approximately 39430ms current ThreadPool exhaustion events 1
2026-05-05 09:59:45.1537 4492 101 WARN "UnitOfWork" created with "e410a490-7b2f-4bc0-b7fb-b23cac80442d" has been alive for "0:00:38:24.6443118".
2026-05-05 10:00:11.3222 4492 44 ERROR "HTTPS" "GET" to "octopus.example.com""/api/Spaces-1/deployments/Deployments-12345" "aborted" with 200 in 00:16:53.6291315 (1013629ms) by "jane.doe"
Scope: when this is the right article
This article is for you if:
- You run self-hosted Octopus Server.
- CPU is high, but the tasks that are executing don't explain it.
- CPU drops when people and integrations disconnect, and climbs again when they reconnect.
This isn't the right article if:
- You use Octopus Cloud. Contact Octopus Support, because the investigation needs access to the server.
- CPU climbs again after a restart, with every integration paused and nobody signed in.
- Tasks are queued only because every node is already running as many tasks as its task cap allows.
Causes and fixes
A deployment with very large build information
How to spot it: CPU climbs when someone opens or deploys one particular deployment, often to production. The Octopus Server log shows requests to /api/{spaceId}/deployments/{id} that take minutes or end in aborted.
Why it happens: a deployment includes build information from every release since the last successful deployment to that environment. If commits are duplicated across packages, or cover a whole branch's history, the deployment can grow to many megabytes. Production is usually furthest behind, so it's usually the one affected.
Fix:
- Until it's fixed, ask your team not to open the affected deployment in the web portal. Each view loads the whole document.
- Change your build server integration so it attaches only the commits for that build, not the whole branch history.
- If several packages are always deployed together, attach build information to one of them only.
- Keep development branch releases in their own channel, so they don't pile up ahead of production.
- Create a new release. Existing releases and deployments keep the build information they already have.
A script searching or polling the tasks endpoint
How to spot it: CPU or request volume is high whenever a particular script or pipeline runs, not only when one deployment is opened. If rate limiting is turned on, the script may get HTTP 429 Too Many Requests responses. The requests often use one person's API key rather than a service account.
Why it happens: scripts often look for a task by paging through /api/{spaceId}/tasks from the start, with no filters, and keep going after they've found it. Run that in parallel across many pipelines, with no pause between loops, and one script can send hundreds of requests a minute.
Fix:
- Find the account and API key behind the requests. Follow How do I identify which API key, user, or integration is generating excessive API requests?
- Change the script to make fewer, cheaper requests:
- Filter by task status and by start and end date, so Octopus returns only the tasks you need.
- Use a larger page size, such as 1,000, instead of many small pages.
- Stop paging as soon as you find the task you're looking for.
- Pause between loops, and stop checking a task's status once it finishes.
- Run fewer requests in parallel.
- Give the script its own service account instead of a person's API key. It's easier to find next time, and it doesn't use up that person's rate limit.
- If you run Octopus 2026.3 or later, have the script read the
Octopus-RateLimitandRetry-Afterresponse headers, and back off before its requests are rejected.
Verify
With maintenance mode off and your integrations running:
- CPU stays at normal levels through a full working day.
- New deployments start within seconds of being queued.
- No new
ThreadPool exhaustedor long-livedUnitOfWorkmessages appear in the Octopus Server log. - The account behind the script you changed is no longer near the top of the request log, and no new rate limit events appear for it in the audit log.
If you're changing several integrations, change and check them one at a time, so you know which change helped.
If CPU is still high
Contact Octopus Support. Tell us if you can't deploy, so we can prioritize your request, and include:
- Your Octopus Server version
- When the problem started and how long it lasted, with your time zone
- Whether CPU climbed again after a restart with your integrations paused
- A System Diagnostics Report from Configuration ➜ Diagnostics
- Your Octopus Server logs from the
Logsfolder in your Octopus home directory, usuallyC:\Octopus\Logs - Any accounts or IP addresses you've already ruled out
We may also ask for a process dump captured while CPU is high. Don't restart the server before you capture it, because a restart clears what we need to see.
Related
- How do I identify which API key, user, or integration is generating excessive API requests?: find the account and API key behind heavy API traffic, and slow it down.
- Service accounts: set up a dedicated account for each integration.
- Performance: general guidance on Octopus Server load, task caps, and retention.
- Rate limiting: limit how many requests each user can make (Octopus 2026.3 and later).
- Log files: where Octopus Server logs are stored and how to change the log level.