FiveM Server Keeps Crashing? Find the Cause in txAdmin Logs

Published on | Updated

FiveM server keeps crashing or restarting by itself? Read what txAdmin logged, match the exit code, then fix artifacts, memory, hangs and resources in order.

Illustration of a worried person kneeling beside server racks and a monitor that shows a server error

Your FiveM server keeps crashing: every player drops at the same moment, txAdmin brings the server back, and an hour later it happens again. This guide covers that case, where FXServer itself stops or hangs. If one player's game closes while everyone else keeps playing, that is a client crash, covered in our complete FiveM crash fix guide. Here you read what txAdmin logged and fix the cause, cheapest check first.

Quick answer: When your FiveM server keeps crashing, find the line starting with Restarting server: in txAdmin's Live Console. "Server process close detected" means FXServer died: read the exit code in the FXServer Exited line, check your artifact build and, on Linux, the kernel log for the out-of-memory killer. "Server is not responding" means it hung for a minute or more; profiler record 500 during the hitch warnings shows which resource holds up the server thread. Then watch FXServer's memory, update or roll back the artifact (Recommended was build 35245 on 3 November 2026) and take out recent resources until the crash stops.

Why Does FiveM Keep Crashing: Your Server or Your Game?

Two kinds of crash hide behind the same search.

What you seeWhat crashedRead
Everyone drops at once, txAdmin restarts the serverFXServerThis guide
The server stays up, one player's game closesThat player's clientClient crash guide, crash codes
Players hang while joining, the console keeps runningThe connection or a join resourceTimeout fix, crashing when joining

The txAdmin dashboard helps: in its "Player drop cause (last 6h)" chart, Crash counts each player who "left due to a game crash, but was still able to inform the server the crash reason". A growing Crash slice while the server stays online points at clients.

Find What txAdmin Logged

Every second, txAdmin requests /dynamic.json from FXServer, and FXServer sends txAdmin heartbeats. txAdmin warns after 10 seconds without either and restarts the server after one minute without a heartbeat, three minutes without an HTTP answer, or straight away when the process is gone. When it restarts a server that is still running, players see "Server restarting (the server needs to be restarted, please reconnect)."

Each restart leaves a line starting with Restarting server: in the Live Console and in the Action Log (System menu). Scroll up to the first line that looks wrong: that is the cause, the rest is fallout.

txAdmin lineWhat happened
Restarting server: Server process close detected.FXServer exited: read the exit code
Restarting server: Server is not respondingThe process stopped answering: a hang
Resource "name" failed to start within the ... time limitOne resource took longer than Resource Starting Tolerance (1.5 minutes by default)
Restarting server: Server boot timed outThe boot stalled before the server came up
FXServer didn't start. This is not an issue with txAdmin.FXServer quit within 5 seconds: read the lines above it
txAdmin was frozen for N secondstxAdmin's own process stalled: look at the machine

The files are in txData under default/logs/: fxserver.log holds the server console (rotated daily, seven files kept by default) and admin.log what txAdmin and your admins did. txData sits above the artifact folder on Windows and next to run.sh on Linux, unless your host set TXHOST_DATA_PATH. Copy the logs before you test fixes. Our txAdmin guide covers the rest of the panel.

Read the Exit Code

When the process died, txAdmin's Console Log (System menu, or the terminal FXServer runs in) shows the exit code in hexadecimal or the signal that ended it.

Exit lineMeaning
FXServer Exited (0xC0000005). on WindowsSTATUS_ACCESS_VIOLATION: native code touched memory it may not use, a crash inside FXServer
FXServer Exited (SIGKILL). on LinuxSomething outside txAdmin killed the process, most often the kernel's out-of-memory killer
Another hex code on WindowsLook it up in Microsoft's NTSTATUS list

If the exit line follows a Restarting server: line, txAdmin ended the process itself; fix the reason in that line. A SCRIPT ERROR stops that piece of script while the server keeps running, so when FXServer exits, check the artifact and memory before Lua stack traces.

Native Crashes: Artifacts and Full Dumps

The bottom of the txAdmin sidebar shows your build as tx: v8.1.1 | fx: b35245; the fx number is the artifact. On 3 November 2026, Cfx.re's version API listed Recommended build 35245 (with txAdmin 8.1.1) and Latest build 38220 (with txAdmin 8.1.2).

  • Crashes started after an update: go back to your previous build and see if they stop.
  • Older than Recommended: update. Cfx.re does not support outdated builds, and "unsupported server artifacts older than three months will not be joinable from the server browser."
  • On Latest: each Latest build is supported until two weeks after the next one, so move to the newest Latest or back to Recommended.

Our artifacts guide shows the swap with a rollback folder. On Linux, note that Cfx.re's setup guide calls the Linux FXServer "a courtesy port" and says issues are more likely to get fixed on the Windows version.

If a Windows server keeps crashing on a build that works for others, capture a full dump for Cfx.re or your developer, as Cfx.re's server debugging page describes: ProcDump v9.0 or newer, in an elevated command prompt in its folder.

procdump64.exe -accepteula -i
procdump64.exe -accepteula -e -h -mp 12345

Use the PID of the largest FXServer.exe under Details in Task Manager instead of 12345. At the next crash a large .dmp file lands in the ProcDump folder; unregister afterwards with procdump64.exe -accepteula -u. This works on Windows only.

Memory: When the Process Gets Killed

A server that runs for hours and then dies at a different moment each time is often out of memory. Watch FXServer Memory on the txAdmin dashboard through a busy evening: memory that climbs and never levels off points at a leaking resource, which our memory leak guide helps you find. A Restart Schedule (Settings, FXServer) buys time, but it does not fix the leak.

On a Linux VPS or dedicated server, the kernel logs every process it kills for memory:

sudo dmesg -T | grep -i "killed process"
sudo journalctl -k | grep -i "killed process"

Out of memory: Killed process at the crash time confirms it; Memory cgroup out of memory means a container or service limit was hit. journalctl -k shows the current boot only, so add -b -1 after a reboot. The process name in that line may not say FXServer, because txAdmin starts FXServer through the musl loader (ld-musl-x86_64.so.1), so match the time. Run df -h too: a full disk breaks database writes and logging.

If nothing leaks and memory hits your plan's limit when the city is full, you need more RAM.

Hangs: Hitch Warnings and the Profiler

FXServer's main server thread ticks 20 times a second, once every 50 ms. When a tick comes more than 150 ms after the previous one, the console prints server thread hitch warning: timer interval of 412 milliseconds (with the real number); the network and sync threads have their own versions. Chase hitches that repeat and grow before they turn into a "Server is not responding" restart. Record a profile in the server console, txAdmin's Live Console included:

profiler record 500
profiler status
profiler saveJSON hitch.json

500 frames is the starting point in Cfx.re's profiler guide; profiler status tells you when the capture is done. Load the saved JSON in Chrome's DevTools (Performance tab, right-click, Load profile), or open the link profiler view prints. Spikes in the CPU time row are the hitches: zoom in and hover over the resource tick events to see the resource, file and line numbers.

The classic cause is a loop that never waits. Cfx.re's CreateThread page warns that a while true loop in a thread can freeze the game without Citizen.Wait(), and in a server script it holds up the server:

Citizen.CreateThread(function()
    while true do
        CheckSomething()
        Citizen.Wait(1000) -- without this line the loop never yields
    end
end)

If players get the message "Due to a partial hang, this server will restart in 1 minute", heartbeats still arrive but the HTTP endpoint stopped answering. Profile it the same way while it runs.

Resources and Boot Timeouts

When the crashes started after a change, or the server dies during boot, bisect your resources:

  1. Back up server.cfg, then put # before every ensure line except the database resource, the framework core and what the core needs.
  2. Start, then add the other resources back in groups, the most recently changed first. When the crash returns, split the last group until one resource is left.
  3. Check the order: the database resource (oxmysql) starts before the framework that uses it, and every resource after its dependencies.
  4. On Linux, check file names: Client.lua and client.lua are different files there, so a resource that runs on your Windows PC can fail on the server.

If a resource failed to start within the ... time limit and is simply slow, raise Resource Starting Tolerance under Settings, FXServer (advanced options) from 1.5 minutes to 3, 5 or 10. If it stalls at every boot, it is waiting on something, often the database. On Windows, Cfx.re's server issues page notes that Microsoft Defender can slow startup by scanning FXServer files, and gives this PowerShell fix (as administrator, with your own path):

Add-MpPreference -ExclusionPath 'C:\FXServer\'

Database errors at boot

oxmysql prints Database server connection established when it connects. Unable to establish a connection to the database (ECONNREFUSED) means the connection was refused: the database service is not running, or mysql_connection_string has the wrong address or port. ER_ACCESS_DENIED_ERROR in the brackets means a wrong user or password. Every resource that loads data at start fails behind it, so fix this first.

oxmysql runs queries asynchronously, so a slow query rarely kills the process, but scripts waiting on it stall. It logs a line such as es_extended took 312.5432ms to execute a query for queries of 200 ms or more, the default of the mysql_slow_query_warning convar. The resource name tells you where to look; our slow query guide covers the fixes.

OneSync setting

Use onesync on: Cfx.re's server commands call legacy "Not recommended due to performance issues and graphical glitches", and sv_maxclients above 64 requires on. In txAdmin, set it under Settings, FXServer (advanced options), not in Startup Arguments. Our OneSync guide explains the modes.

The Machine Itself: Stalls and Attacks

txAdmin was frozen for N seconds means txAdmin's own process stopped for that long; the message itself names the usual suspects, "random issue, VPS Lag, DDoS, etc". Check CPU load and swap at that time. When players cannot connect but the console shows no errors, open http://your-ip:30120/info.json in a browser, as Cfx.re's server issues page suggests: a JSON reply from your public IP means FXServer is running and reachable, so it did not crash; no reply means it is down or a firewall or port forward blocks it. Deliberate crash attacks are covered in our crash exploit protection guide.

When You Rent the Server

On a game panel you usually have no kernel log or ProcDump, so the txAdmin lines are your evidence. On our FiveM hosting txAdmin comes pre-installed and the RAM in your plan is reserved for your server, while the CPU is shared with other servers on the node. If the logs point at the machine, contact support (08:00 to 20:00 UTC by live chat, Discord and email) with:

  • the Restarting server: and FXServer Exited lines, with the time in UTC
  • your fx build from the txAdmin sidebar
  • the 50 console lines before the first error, or a profiler JSON for a hang
  • what changed last: a resource, the artifact or the database

FAQ

Why does FiveM keep crashing? First find out what crashes. If everyone drops at once and txAdmin restarts the server, FXServer crashed or hung, and the Restarting server: line says which. If only your game closes, it is your client: see the client crash guide.

How do I fix FiveM crashing on my server? Read txAdmin's restart reason and the exit code, compare your build with Recommended (35245 on 3 November 2026), watch FXServer Memory, and take out recent resources until the crash stops.

Why does my FiveM server restart by itself? txAdmin restarts FXServer when the process exits, when no heartbeat arrives for one minute, when the HTTP endpoint stays silent for three minutes, or when a resource takes too long to start. Restarts at fixed times come from the Restart Schedule.

What does "server thread hitch warning" mean? A server tick came more than 150 ms after the previous one instead of the normal 50 ms, so something held up the main thread. Run profiler record 500 while it happens to find the resource.

Should I use the Recommended or the Latest artifact? Recommended (35245) on a live server. Latest (38220 on 3 November 2026) gets fixes first, but each Latest build loses support two weeks after the next one, so keep it for testing or for a fix only Latest has.

Sources

All opened on 3 November 2026: