Skip to content

[Bug]: 100% CPU usage and rapidly growing container size after an indeterminate time of normal operation #247

@whosmatt

Description

@whosmatt

Bug Description

Running fredy via docker-compose with file shown below.
Docker version 29.1.2, build 890dcca,
Linux 6.1.57 #11 SMP Fri Apr 26 12:02:53 CST 2024 aarch64 GNU/Linux
Notice that I am running aarch64, this issue might be arm specific.

After some time (roughly once a week), fredy hogs 1 CPU core at 100% and the container size quickly grows (~70GB in a few hours). Restarting the container brings everything back to normal.
This is the second time this has happened.

I will try to inspect the container live the next time it happens.

Steps to Reproduce

  1. Run fredy:
services:
  fredy:
    image: ghcr.io/orangecoding/fredy:master
    container_name: fredy
    restart: unless-stopped
    ports:
      - "9998:9998"
    volumes:
      - ./fredydb:/db
      - ./conf:/conf
    environment:
      CONFIG_JSON: |
        {
          "interval": "9",
          "port": 9998,
          "workingHours": { "from": "", "to": "" },
          "demoMode": false,
          "analyticsEnabled": true,
          "sqlitepath": "/db"
        }
    entrypoint: >
      sh -c 'echo "$$CONFIG_JSON" > /conf/config.json &&
             exec pm2-runtime index.js'
  1. Wait (Took about a week in my case)

Expected Behavior

Fredy should recover from errors without leaving orphaned data and/or processes.

Actual Behavior

One Thread gets maxed out to a permanent 100% and the container size grows indefinitely.

Screenshots / Logs

fredy.log

Environment

Docker version 29.1.2, build 890dcca, Linux 6.1.57 #11 SMP Fri Apr 26 12:02:53 CST 2024 aarch64 GNU/Linux

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions