Reputation: 11
I'm getting this error when i run my FiveM
server (fivem.net
):
It keeps spamming on the console and increases the spam as much as players join the server. Sometimes the warning goes over 5000ms, making the server unplayable.
The server is running on a 4 core XEON @2.2GHz, 15GB Ram, 1GBps network (GCP), the only thing that's running on the machine is the server and XAMPP (for the mysql database). Everything is updated (FiveM artifacts and resources). I've tried disabling/enabling every resource and running ETW tracing (there's no high MS resource), without success.
I want to run a FiveM server without errors like this. Any ideas?
Upvotes: 1
Views: 35505
Reputation: 169
Another tip that others didn't give you is to check if you are running any C# resource. Sadly, FiveM has a bad support for C# and they didn't implement Mono/C# properly, so it has a lot of issues and even properly written code will run bad.
Upvotes: 0
Reputation: 11
Use the profiler to find unoptimized resources that take up lots of MS. Either remove them or try to make them run better.
Upvotes: 0
Reputation: 77
On the server console take this command :
profiler record 25
and when you have this message [Stopped Record] use
profiler view
server gives you a [Browser Link] to see all of your scripts with the time to execute. Find the issue on it.
Upvotes: 0
Reputation: 1
resmon is used just for monitoring msec of client scripts if you want to find unoptimized resources you can use profiler :)
Upvotes: 0
Reputation: 45
check resources monitor with open the console (F8) and type resmon true
, and then see the most bigger resources consumed by which script.
Upvotes: 0
Reputation: 33
Most of the FiveM resources out there are created by users whom are doing this as a hobby, thus can sometime produce not efficient code. How many resources are you running? Have you tried running the server without any resources? Do you get any thread hitch warnings without them?
I have had this problem and it was with a bad resource. I removed that said resource, coded my own, and now I rarely have these messages. It is very likely this is what you are facing. Try doing the above and adding in resources one at a time to find the culprit.
Upvotes: 0