FiveM “server thread hitch warning”: what it means and how to fix it

A warning like “server thread hitch warning: timer interval of 250 milliseconds” means the server's main loop stalled for that long. Players feel it as rubber-banding, delayed actions and desync. Here is how to find the cause instead of guessing.

By the Nodewave team · Updated 8 November 2026

What the warning means

FXServer runs most game logic, including every server script, on one main thread. Each pass of that loop should take a few milliseconds. When one takes much longer, the console prints a hitch warning with the length of the stall. Similar warnings can name the network or sync thread.

1. Find the resource with the profiler

FXServer has a built-in profiler. Run it in the server console (txAdmin's Live Console), not in the F8 console, while the hitches are happening:

profiler record 500
profiler status
profiler saveJSON hitch.json

profiler record 500 captures the next 500 frames. When profiler status shows the capture is done, save it, open Chrome's developer tools, go to the Performance tab and load the file. Hitches show up as tall spikes; zoom into one to see which resource took the time, down to the file and line.

2. Fix the usual causes in scripts

3. Check the database server

Roleplay servers write to the database constantly. Keep MariaDB on the same machine or very close to it, on NVMe storage, with enough memory. Clear out log tables that grow without limit, and back the database up regularly.

4. Check the host

Lag on only some players' screens?

Client lag is different from a server hitch. If only some players stutter, ask them to open the F8 console and run resmon 1 to see which resources use the most time on their side.

Keep it from coming back

Script errors in the console, such as “attempt to index a nil value”, are a different problem. See how to fix that error in ESX and QBCore scripts.

Host your FiveM server in Singapore

Low ping for players in India, Malaysia and Indonesia, on AMD EPYC with NVMe and Gcore DDoS protection on every IP.

FiveM hosting in Singapore →