Guide

FiveM Server Thread Hitch Warning: Meaning and Fix

What "server thread hitch warning: timer interval of X milliseconds" means in FiveM, when you can ignore it and how to find the cause with the profiler.

server thread hitch warning: timer interval of 1331 milliseconds

A FiveM server thread hitch warning means one tick of the server's main thread took much longer than it should, so the next tick started late. The number is how long the gap was. A few of these while the server boots are normal. If they keep coming while players are online, a resource, a slow database query or a CPU that is too weak or shared is holding the thread, and the built-in profiler shows you which.

Last checked: 14 September 2026

What does "server thread hitch warning" mean?

FXServer runs your server logic on a main thread (called svMain in the source) that is meant to tick 20 times per second, once every 50 ms. Every Lua, JavaScript and C# resource runs its server-side code on this thread: event handlers, CreateThread loops, callbacks from oxmysql and so on.

If one tick takes longer, the timer fires late and FXServer prints the warning with the real interval. "Timer interval of 1331 milliseconds" means more than 1.3 seconds passed between two ticks. During that time the server did not process anything else, so players see rubberbanding, doors and inventories that react late, or other players teleporting.

The official FiveM docs do not publish a threshold for this message. In the public FXServer source (GameServer.cpp in the citizenfx/fivem repository, checked today) the main thread prints it when the interval goes over 150 ms. That value is an implementation detail and can change between server builds, so treat it as a guide, not a promise.

Is an occasional hitch warning normal?

Yes, in these cases:

  • During startup. Loading many resources, building the map cache and opening database connections blocks the thread. A burst of warnings in the first minute is common, even on a clean server.
  • Once in a while, with a short interval. A single 160 ms hitch every hour is unlikely to be noticed by anyone.
  • When the host machine is briefly busy, for example during a backup or a Windows update.

Forum users report the warning even on clean installs with only the default resources (forum.cfx.re/t/5194043). That alone is not a reason to panic.

It is a real problem when:

  • warnings appear every few seconds or minutes while players are online,
  • the intervals are long (500 ms and up, or several seconds),
  • they line up with player complaints about desync or rubberbanding,
  • they get worse as the player count rises.

Quick triage before you profile

  1. Note when it happens. Only at boot, at a fixed time (restart, backup, cron job), when a specific player joins or an action happens, or all the time?
  2. Check CPU on the host. Open Task Manager or htop. If one core sits at 100% for FXServer, the main thread is overloaded. If the whole machine is maxed by other programs, the server is starved.
  3. Check if you share the CPU. On cheap VPS plans the cores are often shared with other customers. Your tick time then depends on your neighbours. Our FiveM hosting guide explains how to check whether cores are dedicated.
  4. Remember what changed. A new resource, an update to a framework or a big map is the most common trigger.

How do I find which resource causes the hitch?

FXServer has a profiler built in. You do not need any extra resource. Run these commands in the server console (the txAdmin Live Console works too) while the hitches are happening:

  1. Start recording 500 frames, the starting point the official docs suggest: profiler record 500
  2. Check whether the capture is still running: profiler status
  3. When it has finished, save it: profiler saveJSON hitch.json
profiler record 500
profiler status
profiler saveJSON hitch.json

The file is written to the folder your run.bat (or run.sh) lives in, according to the official profiler docs. On a hosted panel, look in the server's root folder through the file manager or SFTP.

If hitches are rare, a 500-frame capture may miss them. Record again when you see a warning, or use a larger frame count.

How do I read the profile?

Open the FiveM Profiler Viewer and drop hitch.json on the page. The file is read in your browser and is not uploaded. The viewer shows:

  • a resource table with Total, Self, Avg/tick and Max time, sortable by any column,
  • every tick of 50 ms or more marked as a hitch (that is the viewer's own marker, based on the 50 ms tick budget, not an official Cfx.re threshold).

How to use the columns:

  • Sort by Max first. The resource with the biggest single spike is usually the one behind a long "timer interval".
  • Sort by Total or Avg/tick next. A resource that is high there costs time on every tick and raises the baseline, so small extra work tips the server into hitches.
  • Click a resource to see the individual events and functions that took the time.

For a general walkthrough of the profiler, see How to find what is lagging your FiveM server.

Common causes of server thread hitches

These are the patterns admins find most often in profiles. None of them is specific to one framework.

  • Synchronous or slow database queries. A query that waits on a slow database, or a loop that runs one query per player, blocks the thread. oxmysql prints a slow query warning for queries over its mysql_slow_query_warning convar (200 ms by default in the current source). Add indexes, batch queries and avoid sync calls in hot code.
  • Loops over everything. A CreateThread that goes through every player, vehicle or object each tick or every few milliseconds.
  • Heavy JSON work. Encoding or decoding large tables (inventories, housing data) often, or saving everything at once.
  • Event spam. A client resource that triggers a server event many times per second.
  • Big saves at fixed times. A framework that saves all players at once every few minutes gives a regular hitch at the same interval.
  • Weak or shared CPU. If time is spread evenly across many resources and nothing stands out, the machine may just be too slow. The main thread depends mostly on single core speed.

Network thread hitch warning

network thread hitch warning: timer interval of 412 milliseconds

This is the same kind of message from a different thread. The network thread (svNetwork) sends and receives packets and ticks much more often than the main thread (every 10 ms in the current source, with the same 150 ms warning check). If it hitches, players can time out together, not just one of them.

Causes reported on the forum are mostly the host: CPU at its limit, a machine that is swapping memory, heavy packet load during a DDoS, or very high player counts. Hosting providers' help pages also connect it to event spam. Check CPU and memory on the host first, then profile as above. A single player with a bad connection does not cause this warning; they get high ping or a timeout instead.

There is also a sync thread hitch warning for the svSync thread that handles OneSync entity state. Treat it the same way.

What usually doesn't help

Community-reported, from forum threads and admin experience:

  • Clearing the server cache folder. It does not change how long scripts take.
  • Raising RAM alone. More RAM helps only if the machine was swapping.
  • Restarting more often. It hides a slow leak for a while but does not fix a heavy loop.
  • Random "optimization" convars from videos. Nothing in the docs makes hitch warnings go away by config.
  • Removing resources at random. Profile, remove one, compare.

If nothing works

Post in the Server Support category on forum.cfx.re with:

  • the exact warning lines and how often they appear,
  • your server artifact build number and OS,
  • CPU model, number of cores and whether they are dedicated,
  • player count when it happens,
  • a saved profiler saveJSON file or a screenshot of the sorted resource table from the Profiler Viewer,
  • what you changed recently.

A thread with a profile gets real answers. A thread with only the warning text usually gets "use the profiler".

Frequently asked questions

What does server thread hitch warning timer interval mean in FiveM?

It means the server's main thread could not finish a tick in time, so the next tick started late. The number after "timer interval of" is the real time between two ticks in milliseconds.

Is server thread hitch warning bad?

A few warnings during startup are normal. Frequent warnings while players are online, especially long ones, cause desync and rubberbanding and should be investigated with the profiler.

How do I fix server thread hitch warning in FiveM?

Record a profile with profiler record 500, save it with profiler saveJSON file.json, open it in the Profiler Viewer and fix or replace the resource with the highest Max or Total time. If nothing stands out, check whether your CPU is too weak or shared.

At how many milliseconds does FiveM show a hitch warning?

The official docs do not say. The current public FXServer source prints the main thread warning when the interval goes over 150 ms, but this is not documented and may change.

Why do I get hitch warnings on a clean server with no scripts?

Usually during startup or because the host is busy with other programs or shares its CPU. Forum users report occasional warnings on clean installs without any in-game impact.

Does txAdmin cause hitch warnings?

Forum reports show the warning with and without txAdmin. txAdmin is not a typical cause; profile to see which resource takes the time.

FiveM.tools was founded with sponsorship from Nyru.