Rapidly growing server experiencing bad lag, looking for insight

I recently took over the development of a rapidly growing whitelisted server. I’ve got things pretty much handled on the dev side, but on the server management side, I am running into some issues. Our host is OVH VPS; we currently have the following specs:

Our issue is that once we get to about 40 players on the server, we start to experience some fairly bad lag. Players become invisible to each other for minutes at a time, scripts start taking 1500+ ms to run, people start falling through the map, and vehicles take a long time to load from garages. Our CPU usage never goes above 30%, and the RAM stays around 25% as well. We have OneSync turned on and the server set to 128 players.

We do have a lot of resources, and I initially thought resources or streaming data might be the issue. Still, the issue persists even after pulling out a ton of unused resources and retexturing dozens of cars. We do still have a lot of imported cars on the server.

It impacts everyone in the city, from those running beast machines to those limping along on toasters.

Is our VPS underpowered? Do I need to finish optimizing car textures? Any guidance is desperately needed and welcome.

I would start here:

1 Like

I have been trying to use the profiler for days, I get a malformed JSON error that makes the profiler result useless.

Typically, that means your sample size is too large. Make sure you’re only recording short snippets.

thanks, I was trying 500. I will try lower

I’d be starting with 10 to 15.

my clients experienced stuff exactly like that back in 2020 they had a bunch of terrible scripts that sucked up the server’s memory and also used alot of MS

you should use the resource monitor on the server side and look at it

  • run the server manually ( not via game panel use the .exe file)

  • type svgui

and you’ll have a menu on the top left of the window that displays the server ( basiclly a server console )

1 Like