Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caddy using an incredible amount of cpu out of nowhere #6305

Open
ThisIsALegitUsername opened this issue May 8, 2024 · 1 comment
Open
Labels
needs info 📭 Requires more information

Comments

@ThisIsALegitUsername
Copy link

OS: Ubuntu 22.0.4
Caddy version: 2.7.6

Up until recently, caddy had been working fine for around 2 months. All I'm doing with caddy is using it as a reverse proxy. However, recently it has started to use around 200% of my cpu when I check top. No changes were made in configuration, and I've already tried rebooting the machine/service (Rebooting does fix the issue temporarily, but it starts using a lot of resources after around an hour). The configuration is valid.

@mholt mholt added the needs info 📭 Requires more information label May 8, 2024
@mholt
Copy link
Member

mholt commented May 8, 2024

If you can post a CPU profile here, we'll take a look. Here's a detailed tutorial: https://caddyserver.com/docs/profiling

Then also please share:

  • Your config (unchanged; but redact API keys and stuff, just not domains/IPs)
  • Relevant logs (access logs, debug logs, etc -- are you simply getting a lot of traffic?)

My initial guess is that you're just experiencing a lot of traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info 📭 Requires more information
Projects
None yet
Development

No branches or pull requests

2 participants