Server Memory Leak

I have no clue where to put this so I assume it goes here.

I have been having a problem with my server leaking memory, It will take about an hour to go from megabytes of ram to 6gb of ram

What I have tried:
Upgrading my Ram
Removing the most recent resources
Removing resources which I believe can cause it
Running only the stock server, with required fivem resources
Checking to see if my binaries are up to date (which they are)
Running an ETW Trace to see what could possibly cause this problem (goes back to “Removing resources which I can believe can cause it”)

All of this and none of it works still takes about an hour to reach 6gb of ram used, if there is anything else I can test/look at it would be great, and if a screenshot of the server using 17gb of ram at one point is needed I can show that to

Usually, due to have hundreds of resources :slight_smile:
(especially cars and maps)

EDIT : Also, make sure you’re updating your server (https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/) I do it daily.

I’m having this problem too.
For a long time, i never experienced any memory leak on server, but after some update on artifact the server started to get high memory usage, now i need to restart my public server very frequently than before, already checked all my resources, i fixed minor leaks found on my scripts, but im pretty sure about a memory leak introduced by a update.

1 Like

High memory usage, just 3 players and 88 resources. Suspecting a memory leak because the server was increasing ram over time just running alone until 81% of RAM is covered.

Any ideas?

1 Like

What inventory are you using?

#GCPhone
ensure screenshot-basic
ensure gcphone

#ESX_Addons and dependency
start cron
start instance
start pNotify
start esx_addoninventory
start esx_datastore
start esx_society
start esx_addonaccount
start esx_service
start esx_rpchat
start esx_jobs
start esx_policejob
start esx_ambulancejob
start esx_mechanicjob
start esx_property
start esx_status
start esx_basicneeds
start esx_license
start esx_licenseshop
start esx_dmvschool
start esx_vehicleshop
start esx_lscustom
start esx_drp_garage
start esx_barbershop
start esx_shops
start esx_clotheshop
start esx_weaponshop
start esx_holdup
start esx_billing
start esx_atm
start esx_bankerjob
start esx_animations
start esx_drugs
start esx_identity
start esx_trunk
start esx_customJobs

#SkinChanger
start skinchanger
start esx_skin

#ESX de despues
ensure esx_scoreboard

#debug
start coords #ver coordenadas
start marker #teleportarse al waypoint
start noclip #No clip

#Mapeados
start bahamas_map #mapeado de bahamas test
start phyoffice_map #mapeado de terapeuta
start lsc_map #mapeado de LosSantosCustom
start ymap_map

#Maps
start mpheist3
start mpvinewood
start mpsum201
start mpsum202

#Addons
start synctime
start mumble-voip
start legacyfuel
start carcontrol
start seatshuffle
start policeweap
start auto911
start helpcommand
start simpletp
start rp-radio
start doorlock
start sound
start radio
start dpclothing

#HUD
start esx_nafing_hud
start esx_pli
start dep_minimap
start trew_hud

I suspect of the bahamas maps so in the next restart i gonna stop them

(EDIT1) I stopped them and just started the server still noticing the ram going up, gonna let him sit for a few minutes and edit or write another message

(EDIT2) Still noticeable.

Might be best to start disabling some scripts and do it that way

1 Like

Gonna try standard server. Results in a few days

Is there any result to this?

This issue has recently started affecting my server. It has 8GBs of RAM and this fills within ~2 hours.

I’ve gone through all of my resources and disabled them and done countless restarts but no matter what the issue still happens. It appears to be allocating 2-6mb of RAM every second.

I’ve updated my artefact to the latest recommended but yet this still happens. My first suspect was perhaps mysql-async as after me researching some other people have identified this resource as a possible course for RAM constantly being eaten.

I have been trying to fully diagnose this issue for the past 4 days but nothing. This issue started happening 5-6 days ago out of no where.

If anyone could help me further it would be greatly appreciated.

idk where to put this but it says is

Try again at a later time.

  • Check your network connection.
  • If the issue persists, contact …

so here i am figuring out what i did i reset my modem and every thing

Useless bumps that get less and less related over time.