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

CPU spikes #175

Open
2 tasks done
CodeAnthem opened this issue Feb 14, 2023 · 6 comments
Open
2 tasks done

CPU spikes #175

CodeAnthem opened this issue Feb 14, 2023 · 6 comments
Assignees
Labels
type:bug Something isn't working

Comments

@CodeAnthem
Copy link

Is there an existing issue for this?

  • I have searched the existing issues
  • And it has nothing to do with Traefik

Describe the bug

I noticed cpu spikes on one of my VM machines, and figured with: docker stats --format "table {{.Name}}t{{.CPUPerc}}t{{.MemUsage}}" that like every 5-10 seconds error-pages the cpu usage spikes to 8-16% while my other containers chill at ~1%.

traefikt0.00%t24.01MiB / 1.929GiB
error-pagest17.05%t2.922MiB / 1.929GiB
adguardhomet0.02%t45.77MiB / 1.929GiB
portainert0.00%t8.27MiB / 1.929GiB
dozzlet0.00%t13.95MiB / 1.929GiB
sp_watchtowert0.02%t2.418MiB / 1.929GiB
apachet0.01%t5.945MiB / 1.929GiB
sp_traefikt0.01%t9.016MiB / 1.929GiB
autheliat0.00%t21.08MiB / 1.929GiB
sp_portainert0.01%t2.32MiB / 1.929GiB
whoamit0.00%t1MiB / 1.929GiB
traefik-bouncert0.00%t18.5MiB / 1.929GiB

honestly no idea why, I closed all http/s connections to the server and still had this issue.

Steps to reproduce

No response

Configuration files

error-pages:
    <<: *common-keys-alwaysup # See EXTENSION FIELDS at the top
    image: tarampampam/error-pages:2.20.0 # Using the latest tag is highly discouraged. Please, use tags in X.Y.Z format
    container_name: error-pages
    command:
      - "--log-level=error"      
      - "serve"
    networks:
      - traefik
    volumes:
      - ${APPDATA_DIR:?err}/error-pages/mytemplates:/opt/templates:ro # my templates
    environment:
      # TEMPLATE_PATH: /mytemplates/matrix.html
      TEMPLATE_NAME: matrix # set the error pages template
      SHOW_DETAILS: true
    labels:
      traefik.enable: true
      traefik.http.services.error-pages.loadbalancer.server.port: 8080
      com.centurylinklabs.watchtower.monitor-only: true

Relevant log output

No response

Anything else?

maybe you can tell me, what could cause this

thanks a lot and I really like this project

@CodeAnthem CodeAnthem added the type:bug Something isn't working label Feb 14, 2023
@tarampampam
Copy link
Owner

Oh, thanks for your issue! How can I reproduce this locally?

@CodeAnthem
Copy link
Author

Oh, thanks for your issue! How can I reproduce this locally?

well I don't know, I even reduced my containers to a bare minimum and still notice the same. doesn't it spike on your server?
Atm, I excluded it of my core containers running on every hosts, because I got few hosts having poor performance, even tho I would like to have it everywhere.

@tarampampam
Copy link
Owner

tarampampam commented Feb 24, 2023

Yea, from time to time I test the performance and resource usage, and all looks ok. In addition, I have tested that right now:

Screenshot at 2023-02-24 11-30-30

Spikes that you can see (1..3%% of one core) is ok for go-based application, it looks like a GC is working, and templates in-memory cache cleaning.

Should I dig deeper?

@CodeAnthem
Copy link
Author

CodeAnthem commented Feb 24, 2023 via email

@tarampampam
Copy link
Owner

Okay, I'll research this case deeper, stay tuned

@CodeAnthem
Copy link
Author

CodeAnthem commented Feb 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants