# Rocket Chat optimization

**URL:** <https://forums.rocket.chat/t/rocket-chat-optimization/790>\
**Category:** Community Support\
**Created:** [May 22, 2018, 12:10pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790 "2018-05-22T12:10:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chris](https://forums.rocket.chat/u/chris)\
**Post date:** [May 22, 2018, 12:10pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/1 "2018-05-22T12:10:30Z")

</div>

Hey everyone 🙂  
I have self-hosted Rocket Chat with 15 users. Server has 2 CPU and 2 GB RAM. Rocket Chat is served with nginx. Unfortunately channels load so slow. Especially if this channel has a lot of messages. Could I do something to speed up Rocket Chat ? Server is used about 1 GB RAM, and pretty low CPU.

Regards,  
Chris

---

<div class="post-metadata">

**Author:** ![JSzaszvari](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jszaszvari/32/86_2.png) [@JSzaszvari](https://forums.rocket.chat/u/JSzaszvari)\
**Post date:** [May 22, 2018, 4:09pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/2 "2018-05-22T16:09:12Z")

</div>

How many messages is ‘a lot’?

How is the server deployed? (Docker, Snap, etc)

---

<div class="post-metadata">

**Author:** ![chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chris](https://forums.rocket.chat/u/chris)\
**Post date:** [May 23, 2018, 12:34pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/3 "2018-05-23T12:34:37Z")

</div>

Thanks for reply.  
I don’t know how to count this messages. I have bots which send messages to this channels. One message has about 370 words (4211 chars). Few messages per day.

Deploy: manual installation. I installed MongoDB, NPM, download rocketchat source and run. This tutorial: [https://rocket.chat/docs/installation/manual-installation/ubuntu/index.html#](https://rocket.chat/docs/installation/manual-installation/ubuntu/index.html#)  
I have Debian 9

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [May 31, 2018, 6:28pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/4 "2018-05-31T18:28:25Z")

</div>

Is it just channels with these huge messages that take a long time to load? Or is it all channels even channels with normal sized messages?

---

<div class="post-metadata">

**Author:** ![chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chris](https://forums.rocket.chat/u/chris)\
**Post date:** [June 6, 2018, 12:06pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/5 "2018-06-06T12:06:05Z")

</div>

Every channels load quite slow, but these bigger channels load very slow. Maybe there is a possibility to optimize MongoDB by modify configurations or something ?

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [June 6, 2018, 5:12pm UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/6 "2018-06-06T17:12:39Z")

</div>

Its possible that moving mongo to its own box would help things. Especially on some VPS providers who over allocate boxes. Also using mongo mmapv1 storage engine is known to make some difference in performance.

---

<div class="post-metadata">

**Author:** ![chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chris](https://forums.rocket.chat/u/chris)\
**Post date:** [June 13, 2018, 10:40am UTC](https://forums.rocket.chat/t/rocket-chat-optimization/790/7 "2018-06-13T10:40:44Z")

</div>

I think that it will not do anything. Load average is around 0.10 usually and max 0.50. Query time ~ 2-3ms  
Maybe there are some cache settings in RocketChat ?
