ESX Hitchwarning Issue

So Ive been running my server for awhile and kept it between me and a few friends and recently we just opened the doors fully and now we are experiencing big issues but the population is rising fast but the problem is that the server is laggy and keeps having insane hitch warnings and they continuously go higher and higher.
image

I Understand that I have alot of resources but if you have a few resources that you are known to cause issues please let me know

Server.cfg

ESSENTIAL

start gtaoscoreboard
start customchat
start es_admin2
start es_camera
start welcome
start esplugin_mysql
start essentialmode
start es_extended
start loading-screen
start fivem
start hardcap
start mapmanager
start mysql-async
start FiveM-BanSql
start ■■■■■■■
start sessionmanager
start spawnmanager
start population
start solokick

Basics

start baseevents
start salty_death
start new_banking
start commands
start cron
start deleteveh
start fivem-ipl
start fivem-map-skater
start idoverhead
start instance
start NoDriveBy
start outlawalert
start PvP
start skinchanger
start streetLabel
start VK_main
start vk_handsup
start wk_vehdamage
start TLG-ADS
start RealisticHandle
start Binoculars
start sound
start EveryoneIgnore
start disabledispatch
start mtracker
start mhacking

ESX

start esx_addonaccount
start Jailer
start esx_phone3
start esx_addoninventory
start esx_AdvancedFuel
start esx_aiomenu
start esx_ambulancejob
start esx_animations
start esx_barbershop
start esx_billing
start esx_carwash
start esx_clotheshop
start esx_datastore
start esx_dmvschool
start esx_drugs
start esx_eden_garage
start esx_holdup
start esx_identity
start esx_joblisting
start esx_jobs
start esx_license
start esx_lscustom
start esx_mecanojob
start esx_menu_default
start esx_menu_dialog
start esx_menu_list
start menu
start esx_mainjudge
start esx_policejob
start esx_weashops
start esx_property
start esx_service
start esx_shops
start esx_skin
start esx_society
start esx_statejob
start esx_vote
start esx_taxijob
start esx_hide_hud
start esx_vehicleshop
start esx_voice
start esx_gopostal
start esx_holdupbank
start esx_optionalneeds
start esx_mafia
start esx_garage
start esx-binoculars
start esx_pablips
start esx_damage
start esx_handcuffs
start esx_rope
start esx_slotmachine
start esx_bennys
start esx_tattoosShops
start esx_dismay
start esx_clip
start esx-carRental
start esx_unicornjob
start esx_dockshop
start esx_rodriguez
start pNotify
start esx_rpchat
start esx_lawyer
start esx_detector
start esx_grove
start esx_sell
start esx_plasticsurgery
start esx_goDirty
start CivRadar

Cars

start assault_vehicles
start unmarked-police
start CivLSPD
start UPDATEDSTANG
start ninja
start afterhours
start emsfpiu

MAP MODS

start extramaps

Other Addons

start carhud
start pol718
start guns
start hospital
start mask
start Tackle
start PDLivery
start emotes
start knockout
start LEOAnimations
start lux_vehcontrol
start peds
start goto_interiors
start court
start pointing
start salty_vehicleblackout
start fivem-seatbelt
start pv-tow
start vengine
start wk_wrs
start newsstuff
start teslax
start lux_vehcontrol
start missionrow
start marker
start timesync
start starPursuit
start speedo
start esx_criminalrecords
start drop
start brock
start eden_accesories
start nos
start BetterRecoil
start COLOR
start celldoors
start LockSystem
start esx_realweapons
start JF_SeatShuffle
start afkkick
start golf
start esx_securitycam

have you tried asking in the ESX topic?

1 Like

Yup. I even tried on the discord they all just ignore the posts nobody really cares to assist anyone.

2 Likes

Hitchwarning are usually caused by lack of cpu performance

2 Likes

@Ascaped I’ve been getting told that it has to do with scripts I’ve tried to look into everything so is it the scripts or the cpu??

Well its both really. How cpu intensive are your resources? Try optimizing your resources and if that doesnt work then you know its your cpu.

well, you have an insane amount of resources -_-

1 Like

Press F8 ingame. Type: resmon 1. And see which resources are using the most, consider changing them or getting rid of them.

Server-side hitch warnings don’t have to do with client-side timing/memory as displayed in the resmon. That said, this would probably be an easy way to see what resources are coded poorly. More than likely, if a resource is under performing client-side, server-side won’t be much better.

1 Like

well i mean you like have a million Resources so… and whats the specs of your vps or whatever.

Thank you guys so much for the responses, Means alot,

About the resources
I understand I have alot of resources running with the base of ESX and some templates they start off with about 150 resources which seems like alot! it truely is but nothing we can do about that.

CPU Specs
image

Also keep in mind that it is in fact only a VPS which shares CPU. I recommend getting yourself a dedicated box/server for full CPU use.

Did that and now it has no issues it was for sure the VPS I was on Bought a new one and everythings running smooth

what spec are u use ?

This post is from well over a year ago, kriz has learned alot so im sure this is no longer an issue.

If he could share his solution to others, that would be great too. Or at least how he tracked it down on his side.

yeahh, its better

Hey @KrizFrost,

I’ve deal with the same problem before, i solved it by using the profiler tool, “resmon 1” will probably not help/solve the problem completely since the Hitch Warnings are server sided, so i truly recommend the use of the profiler tool in you server prompt !

Hitch Warning can be caused by multiple things, most of the issues are related with loops making TriggerServerEvents or ServerCallback’s and so, overloading the server.

For example… Having a while true do with 10 ms delay and inside of it, having a TriggerServerEvent or ServerCallback being called everytime its really bad

Usefull Links

Profiler tool