Alpachino Posted August 13 Share Posted August 13 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 xLive Posted August 13 Scripting Moderators Share Posted August 13 It looks like you have a memory leak in your scripts. Check the performancebrowser to see which ones are using the most memory. Link to comment
Alpachino Posted August 13 Author Share Posted August 13 1 hour ago, xLive said: performancebrowser client https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-58_a2g5.png server https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-52_fiky.png https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-01_kx4w.png Link to comment
Scripting Moderators xLive Posted August 13 Scripting Moderators Share Posted August 13 4 hours ago, Alpachino said: client https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-58_a2g5.png server https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-52_fiky.png https://s8.uupload.ir/files/mta-screen_2024-08-13_14-16-01_kx4w.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. 1 Link to comment
Alpachino Posted August 16 Author Share Posted August 16 On 13/08/2024 at 22:12, xLive said: 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 xLive Posted August 18 Scripting Moderators Share Posted August 18 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now