StackOverflow Posted July 7, 2025 Share Posted July 7, 2025 (edited) The dedicated Don't Starve Together server I set up occasionally experiences severe lag, which resolves itself after a few minutes. I attempted to capture the profile.json and found that each Update takes over 150ms to complete. However, I can't pinpoint the exact cause of this issue—perhaps it's due to a certain mod? How can I identify the root cause from this data? Quote Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 2 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum Stepping: 4 CPU MHz: 2500.002 BogoMIPS: 5000.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap Quote root@iZ2ze9jcfpt0bdrl2n4ub3Z:~# free -h total used free shared buff/cache available Mem: 3.7G 2.0G 179M 2.1M 1.5G 1.5G Swap: 2.0G 21M 2.0G profile.json Edited July 7, 2025 by StackOverflow Link to comment https://forums.kleientertainment.com/forums/topic/166874-dedicated-server-lag-with-167ms-for-one-update/ Share on other sites More sharing options...
Daniel86268 Posted July 7, 2025 Share Posted July 7, 2025 Probably a mod that does something with Entities, as this line mentioning the EntityManager.cpp appears 15362 times in the log: {"cat":"dont_starve","name":"GetEntityByGUID","pid":0,"tid":4136092288,"ts":674464,"ph":"B" , "args":{"src_file":"../source/simlib/EntityManager.cpp","src_line":193}}, Not sure what it (the mod?) does, but it seems it tries to access all entities at once or something? No idea. Link to comment https://forums.kleientertainment.com/forums/topic/166874-dedicated-server-lag-with-167ms-for-one-update/#findComment-1826032 Share on other sites More sharing options...
StackOverflow Posted July 7, 2025 Author Share Posted July 7, 2025 40 minutes ago, Daniel86268 said: args":{"src_fi Then what can I do to find the caller of GetEntityByGUID Link to comment https://forums.kleientertainment.com/forums/topic/166874-dedicated-server-lag-with-167ms-for-one-update/#findComment-1826036 Share on other sites More sharing options...
StackOverflow Posted July 7, 2025 Author Share Posted July 7, 2025 I've checked the profile.json when game runs smoothly, GetEntityByGUID is also called more than 15000+ times. So I don't think the issue is related to it Link to comment https://forums.kleientertainment.com/forums/topic/166874-dedicated-server-lag-with-167ms-for-one-update/#findComment-1826044 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now