Skip to content

[BUG] CPU suddently spikes #122

Open
@yurividal

Description

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Every couple of days, this container suddenly spikes on CPU usage, for no apparent reason. The logs don't show anything.

image

Restarting te container is the only way to fix this and bring CPU usage back to normal.

Is there a way to make it more verbose logging, so that I can try to understand what the container is doing when the CPU spikes?!

As mentioned, nothing shows on the container logs, nor on the Unifi Application Logs.

Expected Behavior

CPU Usage should remain stable, unless on periods of database cleanup, or upgrades.
Logs should be more detailed.

Steps To Reproduce

Run container for a few days, observe CPU usage.

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

services:
  unifi-network-application:
    image: lscr.io/linuxserver/unifi-network-application:latest
    container_name: unifi-network-application
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - MONGO_USER=unifi
      - MONGO_PASS=<redacted>
      - MONGO_HOST=unifi-db
      - MONGO_PORT=27017
      - MONGO_DBNAME=unifi-db
      - MONGO_TLS=false
    volumes:
      - ./data:/config
    restart: always
    mac_address: <redacted>
    networks:
      homelab-lan:
        ipv4_address: <redacted>
      unifi-controller:
      homelab-internal:
    depends_on:
      - unifi-db

  unifi-db:
    image: docker.io/mongo:4.4
    container_name: unifi-db
    volumes:
      - ./database/data:/data/db
      - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
    restart: always
    networks:
      - unifi-controller

networks:
  homelab-lan:
    external: true
  unifi-controller:
    driver: bridge
  homelab-internal:
    external: true

Container logs

[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:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 8.6.9-ls69
Build-date: 2024-11-12T17:34:23+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
[ls.io-init] done.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

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

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

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

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

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 8.6.9-ls69
Build-date: 2024-11-12T17:34:23+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions