Rocketchat is getting very slow at some times

Description

Hello everyone, I hope you’re all doing well.
I have a self-hosted Rocket.Chat service that’s implemented as a container, and I’m using Nginx for its web server. In our company, we have about 300 users who use this service, and it’s really great—we haven’t had any issues overall.
My problem is this: From 8 AM when everyone starts working, the service works fine with no problems, but around 4 PM, suddenly for about half an hour, it becomes very slow, and then it fixes itself automatically. I have no idea what’s causing it. I’ve checked everything I could but haven’t reached any conclusion.
I’d really appreciate your help.
I’m using the Community Edition, and it’s completely up to date.

Server Setup Information

  • Version of Rocket.Chat Server: 7.3.12
  • Operating System: ubuntu 24.04
  • Deployment Method: docker compose container
  • Number of Running Instances: 1
  • DB Replicaset Oplog: –oplogSize 128 --replSet rs0 --storageEngine=wiredTiger;
  • NodeJS Version:
  • MongoDB Version: 6.0.19
  • Proxy:
  • Firewalls involved:

Any additional Information

Note that generally anything beyond about 200 users starts to need microservices & more complex setups. A limitation of nodejs.

Your logs will tell you.

Watch them when it occurs.

You are using file storage and not GridFS as per the docs?

What resources does your container/server have?

i have an s3 storage and this is work fine

i have 16gb Ram and 8 Core cpu on a virtual machine

half of ram is using every time and 20% of CPU

The main issue is that from the morning, when employees start working, the server performs very well and smoothly. However, between around 3:30 PM and 4:30 PM, the server becomes slow for about half an hour. I have checked, and there are no specific cron jobs running during that time window.

Check your logs.

Same time every day……

Can you tell me what I should look for in the logs? Should I check the Rocket.Chat container logs or the MongoDB logs?

No idea!

But that’s the place to start.

Open multiple terms. Log mongo, rocket & system logs and see what happens.