How to allocate more ram memory to a server

I have a VPS with 30GB of RAM memory because I believe that is enough for what I need, the problem is once the server reaches 60ish players it starts lagging as hard as it can. I wonder if the server is using all the RAM it can in order not to lag.

You don’t really need to allocate more ram to a FiveM server, the server largely acts as a communication point between people that are connected to it, it doesn’t have graphics or any major processing that happens.

You can try to give the server higher process affinity and see if that helps, I would assume you’re using mysql so you can make sure that your SQL properties are all set properly, it could be creating a bottleneck in there somewhere with all of the connections to and from while accessing information, or some resources that you have could be causing the lag, you can always monitor the server when it gets near the point where it usually lags using the resmon console command, then you would see if there is an issue with any of your resource usage.

you have to check your server’s processor, the FIVEM used higher frequencies better than having too many cores. it is normal to find VPS with 2Ghz processors which is very bad for FIVEM.