Jump to content

increasing RAM usage by MTA on VPS over time


Recommended Posts

Hello everyone!

Recently, we noticed excessive RAM usage on the VPS server, and I’ve attached a screenshot below. When the server starts, it only uses 500 MB of RAM, but over time, this usage increases daily. Within 24 hours, it has reached 1.9 GB, and I’ve even seen it go up to 8 GB and more. All the server events are written in an optimized way, and functions like fetchRemote are used very sparingly. I would appreciate it if you could explain the reason for this issue and suggest a solution. Thank you!

 

"Examples of the server’s resources:

  • Using SQLite for storing small and temporary data
  • Using events related to createPed for spawning zombies
  • Using DGS for creating panels
  • Using Dx for HUD and all panels
  • Using fetchRemote for sending specific logs to Discord
  • Using tables and for loops for storing and managing temporary data
  • Using debug hook as a useful function to prevent cheats and injectors
  • The base game mode was DayZ, but 90% of the game mode's code has been modified, removed, or optimized.

https://s8.uupload.ir/files/image_2024-08-13_10-44-18_emq.png

 

 

Link to comment
  • Scripting Moderators
4 hours ago, Alpachino said:


fD5tvMZ.png
System is using almost 1GB of memory. I don't know what this script does or if it actually requires that much memory, but it seems like a memory leak that needs to be fixed.

  • Like 1
Link to comment
On 13/08/2024 at 22:12, xLive said:


fD5tvMZ.png
System is using almost 1GB of memory. I don't know what this script does or if it actually requires that much memory, but it seems like a memory leak that needs to be fixed.

Dear friend, I have another question. Is there a way to identify if the Skin mod or a vehicle is broken and has a crash problem?

Link to comment
  • Scripting Moderators
On 16/08/2024 at 11:42, Alpachino said:

Dear friend, I have another question. Is there a way to identify if the Skin mod or a vehicle is broken and has a crash problem?

Nope, you'll need to remove them one by one and see if the crash stops to figure out which one is causing it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...