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

[BUG] 2.1.1-r8-ls236 high CPU usage (using curl as health check) #193

Closed
1 task done
Schmill opened this issue Dec 7, 2023 · 10 comments
Closed
1 task done

[BUG] 2.1.1-r8-ls236 high CPU usage (using curl as health check) #193

Schmill opened this issue Dec 7, 2023 · 10 comments

Comments

@Schmill
Copy link

Schmill commented Dec 7, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

CPU usage is extremely high, usually 50% (tying up one core), and then going to 100% when it takes the other core.

Expected Behavior

CPU usages is normally very low.
Previously I was running 2.1.1-r8-ls231 and all was fine. I updated to the latest (242) and had this issue.
I then switch between various releases between them to find at what point the problem occurred. on 235 all is well, on 236 I get the issue.

Steps To Reproduce

Installed the 236 image, and using curl for a health check.

Environment

OS: Synology DSM 6.1.7-15284 Update 3
Portainer running in a docker container.
Used Portainer "stack" to install the Deluge image.

CPU architecture

x86-64

Docker creation

deluge__nord_vpn:
  # #####################
  # Deluge (with NordVPN)
  # #####################
    container_name: deluge
    image: linuxserver/deluge:${DELUGE_VERSION}
    depends_on:
      vpn_nord:
        condition: service_healthy
    healthcheck:
      test: "curl -f --connect-timeout 120 ifconfig.io || exit 1"
      retries: 5
#      start_period: 2m
#    labels:
#      autoheal: "true"
    environment:
      - PUID=${USERID:?User Id not set}
      - PGID=${GROUPID:?User Id not set}
      - TZ=Europe/London
      - DELUGE_LOGLEVEL=error #optional
    volumes:
      - /volume1/docker/deluge:/config
      - /volume1/downloads/:/downloads
    network_mode: "container:vpn_nord"
    restart: unless-stopped
    profiles:
      - nord_vpn

Environment variable "DELUGE_VERSION" set to either:
2.1.1-r8-ls235 - works
2.1.1-r8-ls236 - high cpu

Container logs

ash-4.3# docker logs linuxserver.io
Error: No such container: linuxserver.io
ash-4.3# docker logs deluge
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1036
User GID:    100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Connection to 127.0.0.1 58846 port [tcp/*] succeeded!
Connection to 127.0.0.1 8112 port [tcp/*] succeeded!
[ls.io-init] done.
Copy link

github-actions bot commented Dec 7, 2023

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@Schmill Schmill changed the title [BUG] 2.1.1-r8-236 high CPU usage [BUG] 2.1.1-r8-236 high CPU usage (using curl as health check) Dec 7, 2023
@Schmill
Copy link
Author

Schmill commented Dec 7, 2023

Using Portainer's "stats" view it seems to be the "curl" health check that is causing the high CPU usage:

image

I am not sure why this would be though, since the health check operates without issue on 235...

@j0nnymoe
Copy link
Member

j0nnymoe commented Dec 7, 2023

Remove the health check, does it improve?

@Schmill
Copy link
Author

Schmill commented Dec 7, 2023

Yes, if I disable the health check then I do not get high CPU usage with ls236, or if I leave the health check enabled but run ls235 then I do not get high CPU usage.
I am not sure what has changed in ls236 that would now cause the "curl" health check to be causing such high CPU usage.

@Schmill Schmill changed the title [BUG] 2.1.1-r8-236 high CPU usage (using curl as health check) [BUG] 2.1.1-r8-ls236 high CPU usage (using curl as health check) Dec 7, 2023
@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@Schmill
Copy link
Author

Schmill commented Feb 2, 2024

The issue still persists... I'm not sure how I keep this from going stale?

@thespad
Copy link
Member

thespad commented Feb 2, 2024

https://info.linuxserver.io/issues/2023-12-30-synology/

The underlying issue was fixed 3 weeks ago and there have been multiple Deluge builds since then which would include it.

@Schmill
Copy link
Author

Schmill commented Feb 2, 2024

https://info.linuxserver.io/issues/2023-12-30-synology/

The underlying issue was fixed 3 weeks ago and there have been multiple Deluge builds since then which would include it.

Oh excellent, many thanks for that. I thought that this ticket would get related to an issue if it was going to be worked on. I had no idea it had been done. Thanks!

@Schmill Schmill closed this as completed Feb 2, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Feb 2, 2024
@thespad
Copy link
Member

thespad commented Feb 2, 2024

It was a general issue and not specific to Deluge, so some open issues got overlooked when we fixed it.

Copy link

github-actions bot commented Mar 3, 2024

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants