RocketChat / Docker.Official.Image

Docker hub - community managed image
293 stars 218 forks source link

High CPU load; Node proces #125

Closed rudesome closed 3 years ago

rudesome commented 3 years ago

Description:

High CPU load in docker Rocket.Chat container (not sure if it is normal behavior). Proces is node and it is constantly 70% of CPU usage. Am running it within 4 vcpu Ubuntu VPS

Steps to reproduce:

Pull latest docker image Run image as docker container

Expected behavior:

CPU that time to time will spike, not constant high CPU load

Actual behavior:

High CPU load

Server Setup Information:

sampaiodiego commented 3 years ago

seems related to https://github.com/RocketChat/Rocket.Chat/issues/19082

can you please run with the following environment variable set and see if it helps? USE_NATIVE_OPLOG=true

rudesome commented 3 years ago

yep this solved the high cpu issue, thanks!

sampaiodiego commented 3 years ago

good to know, thanks..

FYI there is a fox this already https://github.com/RocketChat/Rocket.Chat/pull/19181

once that is merged we'll launch a 3.7.1 release so you won't need to env var anymore.

codeneno commented 3 years ago

@sampaiodiego Does this only fix "mmapv1 database engine or when no admin access was granted to the database user,"? we use 3.3.3 version,and it will have a high cpu load sometimes,does this work for wiredTiger ?thank you.