Posts: 165
Threads: 38
Joined: Jun 2014
Reputation:
0
Hello guys, i have a 512mb VPS and i'm hosting a Roleplay server with a quite heave script. When i reach 40+ players, the server starts lagging.. Is it normal? Do i need to upgrade the VPS's Ram? Or do i need to clean up some junk in scriptfiles?
Posts: 17
Threads: 2
Joined: Oct 2012
Reputation:
0
Yeah, 512RAM is really on the low-end for a populated server.
I would run some diagnostics though, first, i.e task manager for Windows - it should be obviously maxing out (or closely maxing out) in RAM when the lag is happening/you have a lot of people.
I do think 512mb RAM is really low though for a populated server - We run on a 8gb 4 core dedi (which is TOTAL overkill) fine, but when we ran on a 2gb VPS we often had RAM/CPU issues, mostly because our script is SQL based and having all of that on a lowly VPS does nom RAM and CPU.
Posts: 241
Threads: 8
Joined: Dec 2014
Reputation:
0
Better to upgrade VPS to 1gb ram atleast or 2gb..
Posts: 617
Threads: 6
Joined: Oct 2011
Reputation:
0
Have you even tried to see what exactly might be causing it? For all you know your network could be choked and once you start hitting a certain required mark for the network it starts choking you out. Your SAMP server could be using too much CPU, very highly doubtful on the RAM part unless you have mySQL installed and not configured properly / plugins installed.
My suggestion is grab a test file that is either in the same DC as the one you're hosted under or in the same city and run a test downloading it, you should make sure you're getting at least 1MB per/second speed. If at any time it goes below 1MB than clearly your network on the server hosting the VPS is choked and unable to handle a SAMP server.
Next thing as stated if you're using linux use the "top" command and monitor your SAMP servers RAM and CPU usage along with other services and make sure they're in range, if your SAMP server is using even over 50% of CPU resources at 40 players than you really need to work on optimizing your gamemode / removing any plugins that are not kept up to date.
If your VPS is a windows VPS than yes you clearly need to upgrade from 512MB of RAM but as a linux VPS there should be no problems especially at 40 players.