bitwarden / self-host

Bitwarden's self-hosted release repository
GNU General Public License v3.0
316 stars 55 forks source link

[UNIFIED] bitwarden/self-host:2023.9.3-beta High CPU usage #164

Open hardwareadictos opened 9 months ago

hardwareadictos commented 9 months ago

Just updated my APP container to 2023.9.3-beta and Bitwarden now is sitting on +- 50% of VM CPU Usage:

image

As the base image is a very lightweigh Debian, i cannot check processes. Can someone help me with this?

On my test container all seems fine, only 5 users which are using the service as before. My docker-compose file:

version: "3.8"

services:
  bitwarden:
    container_name: Bitwarden-PRO
    depends_on:
      - db
    env_file:
      - ./env/bw-settings.env
    image: bitwarden/self-host:2023.9.3-beta
    restart: unless-stopped
    ports:
      - "8085:8080"
    volumes:
      - ./bitwarden:/etc/bitwarden

  db:
    container_name: BitwardenDB-PRO
    env_file:
      - ./env/db-settings.env
    image: mariadb:10
    restart: always
    volumes:
      - ./db:/var/lib/mysql

Thanks in advance.

Edit 1: Is even getting worse:

image

Aviator7595 commented 4 months ago

Same for me. Dotnet api.dll and identity.dll are consuming more than 50% of CPU every 10 seconds. To reproduce, it is necessary to login from several devices. Once having this issue, the only solution is to remove the container and run it again from scratch which is very painful. @dev team: please acknowledge the issue so we know it will be fixed some time in the future

DevSecNinja commented 2 months ago

Same issue of high CPU spikes on 2024.5.0-beta. As soon as I spin up Bitwarden, the CPU load rises very fast to load average: 2.93, 0.95, 0.51. Nothing strange in the logs. After deleting the containers, I go back to load average: 0.21, 0.24, 0.27. My config is located here: https://github.com/DevSecNinja/home/blob/main/docker/ansible/templates/compose-modules/bitwarden.yml