Rocket Chat subscription and REST API integration exemplified high memory usage. When a user logs in, the consumption is between 7 to 13 megabytes initially. After some time, it releases 2 to 4 megabytes

Rocket Chat subscription and REST API integration exemplified high memory usage. When a user logs in, the consumption is between 7 to 13 megabytes initially. After some time, it releases 2 to 4 megabytes. If proper testing is continued, it can lead to the server’s RAM usage reaching 10 to 14 gigabytes.

To resolve the issue, we have transitioned from GridFS to S3. Following this change, we have properly unsubscribed inactive subscriptions. Additionally, we have updated the Rocket Chat version, implemented proper login/logout procedures, and deployed the server on AWS.

the server crashed.