RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.4k stars 10.51k forks source link

Perfomance issues when upgrading from 6.3.3 to 6.4.2 #30812

Open shiryov opened 12 months ago

shiryov commented 12 months ago

Description:

Version 6.4.2 loads servers heavily. In the grafana we see many requests rate that were not that before. Docker instances are restarting with OOM.

Steps to reproduce:

  1. Update your RC from 6.3.3 to 6.4.2
  2. Look at the production Graphаna
  3. See docker logs

Expected behavior:

Performance and stability are no worse than the previous version 6.3.3

Actual behavior:

High CPU load on 5 servers, instance restarts

Server Setup Information:

Client Setup Information

Additional context

there are a lot of calls to these API methods:

action.buttons
commands.list

In a few hours without disconnections, I saw in my Google Chrome(117) - 50 calling of API method commands.list

RC logs chart with API section for one hour: image

image

before update image

after update image

There is also a dependence of this issue #30717, but it is not significant. We found out that there are not many such clients in our network.

Relevant logs:

ankar84 commented 11 months ago

Stability of Rocket.Chat service decreased heavily. Please help us to improve it.

ankar84 commented 11 months ago

That could be related fix https://github.com/RocketChat/Rocket.Chat/pull/30819 that can help a bit.