self-host icon indicating copy to clipboard operation
self-host copied to clipboard

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

Open hardwareadictos opened this issue 2 years ago • 4 comments

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

hardwareadictos avatar Oct 20 '23 10:10 hardwareadictos

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

Aviator7595 avatar Mar 23 '24 09:03 Aviator7595

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

DevSecNinja avatar May 18 '24 19:05 DevSecNinja