[ASK] 256mb of RAM - 20 Players Online++
#1

I Have Server SAMP
I have VPS with 256mb of RAM, the average player online 22++
Total Memory Usage: 55% 140.39 MB of 256 MB Used
whether it is normal?
_______________________
[Image: HYPERZ.png]
Reply
#2

The ram usage mainly depend on how heavy the script is so it is normal for light scripts, generally RP scripts are heavy and mostly other scripts like mission servers, racing..etc have a very light script so it is normal. I have seen playerbase of 40+ on a server which was hosted on 512mb ram. But its recommended to have more than twice of the RAM in vps than that is used normally, you never know when more players will join your server and if RAM usage increases and reaches it limits it may lead to server crash and malfunctioning of other things on VPS.
Reply
#3

So with 22 people online you are using 140mb of ram? That seems alittle much but it all depends on your game mode. If your game mode has alot of stored vales per player or if you have alot of npcs it will use more ram. Don't worry about it, 140mb for 22 players is no big deal especially if you have a good gamemode.
Reply
#4

I doubt you have something like MapAndreas, but there are certain plugins that use a lot of ram, and the rest depends on how many variables your script owns, my best guess is you are using something like Godfather script's MAX_STRING 256 define that pretty much devours your ram, if you script is not that huge and feature heavy I suggest you head over to these topics to optimize your script a little more
https://sampforum.blast.hk/showthread.php?tid=216730
https://sampforum.blast.hk/showthread.php?tid=580289
https://sampforum.blast.hk/showthread.php?pid=3517039#pid3517039
if you do use these optimizations in your code you will probably lower your ram and cpu usage by more than 30% (probably more than 70% if your script is old and un-optimized)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)