[Artifact Regression] Sync thread and network thread hitch spam on newer artifacts
What happened?
After updating our FiveM server from artifact b25770/Win to newer artifacts, we started experiencing frequent and continuous sync thread and network thread hitch/warning messages.
The server does not exhibit this behavior when running artifact b25770/Win. The issue appears after switching to newer artifact versions.
The warnings occur repeatedly and can spam the server console, even though the server configuration and resources remain unchanged.
Expected result
The server should maintain normal sync and network thread performance after updating to a newer artifact, without continuous sync thread and network thread hitch warnings. At minimum, the behavior should be consistent between artifact versions when using the same server configuration and resources.
Reproduction steps
Run the server using artifact b25770/Win. Use the same server configuration, resources, database, and player load. Observe the server performance and console output. Update the server to a newer/current artifact. Start the server using exactly the same configuration and resources. Observe the server console and thread performance. sync thread and network thread hitch/warning messages begin occurring repeatedly and are heavily spammed.
The issue appears to be artifact-version dependent, as reverting back to b25770/Win removes the behavior.
Importancy
Unknown
Area(s)
FiveM
Specific version(s)
b25770/Win
Additional information
The server configuration and resources are kept unchanged when switching between artifact versions.
The main difference is the FiveM artifact version itself.
The behavior strongly suggests a regression introduced in newer artifacts, as the same server environment operates normally on b25770/Win.
I can provide console logs, profiler information, server configuration, and additional testing results if needed.
Hi, Sometimes, if the logo is too large, it can cause this to happen. Please check it.
Hi, Sometimes, if the logo is too large, it can cause this to happen. Please check it.
Which logo?
There is a 512x512 logo
Hello, if you can record an ETW trace while the hitches are happening and send them to me on Discord @Gogsi123. Applies for everyone having these.
Same issue here randomly network hitch, and mass disconnects. (only with new artifacts, when i switch back to 25770 it stops)
Can confirm, same issue here.
To help effectively Cfx team debug this issue, I would suggest providing a server-side ETW from time of the issue: https://support.cfx.re/hc/en-us/articles/8366604193436-Creating-an-Event-Tracing-for-Windows-ETW-trace-log-for-FiveM-Troubleshooting
This issue has been fixed in artifacts 35574.
@ShamZy9 were u able to figure out the issue with mass disconnect?
Hi, I’m experiencing a very similar issue on my RedM/FXServer server.
In my case, the problem only happens when I use newer FXServer artifacts.
With artifact 25770, the server remains stable and this problem does not happen.
When I use a recent artifact, the behavior is:
- After a server restart, svNetwork / svSync / svMain start around 1–3 ms.
- As uptime increases, especially after a few hours, svNetwork starts increasing progressively.
- It can go from ~2 ms to 10–15 ms, then 30–60+ ms.
- Eventually I start getting repeated warnings like:
network thread hitch warning: timer interval of 301 milliseconds network thread hitch warning: timer interval of 392 milliseconds network thread hitch warning: timer interval of 530 milliseconds network thread hitch warning: timer interval of 458 milliseconds network thread hitch warning: timer interval of 514 milliseconds network thread hitch warning: timer interval of 542 milliseconds
- At that point, players start disconnecting / timing out in large numbers.
- After restarting the server, everything immediately goes back to normal.
The issue can start happening with around 90+ players on the newer artifacts.
However, I have tested the exact same server, resources, database and configuration using artifact 25770, and the issue does not occur.
With artifact 25770, this same server has handled up to approximately 300 simultaneous players without this progressive svNetwork degradation, without repeated network thread hitch warnings, and without these mass disconnections.
Because of this, the difference between artifact 25770 and newer artifacts has been very consistent in my tests.
I also captured an FXServer profiler exactly while the network thread hitches were happening. I could not identify any single Lua resource blocking for 300–500 ms, which makes me suspect that the issue may be related to the native network/sync thread rather than one specific Lua script.
I saw that this issue was marked as fixed in artifact 35574, so I wanted to report that I am still able to reproduce very similar behavior when using newer artifacts.
Could this be another regression, or is there anything specific you would like me to capture to help diagnose it?
I can provide:
- svNetwork / svSync / svMain graphs
- FXServer profiler captures taken while the issue is happening
- Console logs showing the network thread hitch warnings
- Player count and server uptime information
- Comparison tests between artifact 25770 and newer artifacts
If needed, I can also run additional tests on specific artifact versions to help identify where the regression starts.
should be fixed on 35574, if not make sure to do a server side etw trace ( https://support.cfx.re/hc/en-us/articles/8366604193436-Creating-an-Event-Tracing-for-Windows-ETW-trace-log-for-FiveM-Troubleshooting ) ) and send it to gogsi or upload it here
should be fixed on 35574, if not make sure to do a server side etw trace ( https://support.cfx.re/hc/en-us/articles/8366604193436-Creating-an-Event-Tracing-for-Windows-ETW-trace-log-for-FiveM-Troubleshooting ) ) and send it to gogsi or upload it here
are you on windows? or linux?
windows
So just switching to Windows and updating the artifact fixed the issue for you?
We’ve been debugging ours for the last few days. Everything on the network/provider side looks fine, but whenever we suddenly get a bunch of network thread hitches, the server starts mass-timing-out players.
For example, we can go from around 200 players down to 20 within a short period. The strange part is that FXServer itself doesn’t crash — it stays online, but most players get timed out/disconnected.
Did your issue look similar before you switched to Windows and updated the artifact?
@ShamZy9
yes the issue is for network thread and mass disconnection, as i said should be fixed on artifacts 35574, if you still have the issue after the update make sure to record an etw trace
yes the issue is for network thread and mass disconnection, as i said should be fixed on artifacts 35574, if you still have the issue after the update make sure to record an etw trace
Do you have any contact information for me to reach out? discord maybe?
yes the issue is for network thread and mass disconnection, as i said should be fixed on artifacts 35574, if you still have the issue after the update make sure to record an etw trace
It is fixed but that artifact has another issue where players get disconnected for Timed out after 60 seconds
@ShamZy9
I already tested this on the latest artifact version, 35945, as shown in the screenshot I attached.
Unfortunately, the issue is still happening, so it doesn't seem to be fully fixed yet.
I also tested 35245 (Recommended) and had the same issue.
When I switch back to artifact 25770, the server remains stable and the issue disappears.
In this graph, the left side is running a newer artifact, while the right side is running artifact 25770.
With the newer artifact, server performance progressively degrades over time. After switching back to 25770, performance returns to normal and remains much more stable.
I have reproduced this behavior multiple times with newer artifacts, including 35245 (Recommended) and 35945.
This is the same server, same resources, same database, same configuration and same host. The artifact version is the variable that consistently changes this behavior.
@constanciooeste are you on windows or linux? also why you want to upgrade to higher version instead of keep using 25770 since it is stable?
@constanciooeste you should record an etw trace can't really know what is going on without a trace https://support.cfx.re/hc/en-us/articles/8366604193436-Creating-an-Event-Tracing-for-Windows-ETW-trace-log-for-FiveM-Troubleshooting
I don't know what's happening here but just to clarify:
The issue isn't fixed on the latest retail artifact. It is fixed on an experimental feature branch.
That branch isn't ready for merging yet, because of an issue where sending large latent events to a player while they are still connecting will cause them to time out with the message latent event ACK overflow.
I'll ask if I can share the branch publicly and do it.