Closed zc1108aaa closed 2 months ago
Use a profiler like spark to properly view cpu and memory usage from mc
Not added add to No response in a few minutes I also deleted these mods
can you send the spark report created by running:
/spark profiler start --timeout 30
Not added
the link, not a screenshot
can you send this file
ok, go to https://spark.lucko.me and upload the report, then share the link
increase https://spark.lucko.me/jqCXp0Ty7l
Had a look through, nothing indicates all the trims as the cause, notably it's not even recorded as impacting performance at all. Your main culprits are villager pathfinding, that's taking up a large amount of resources and slow memory reading, which I am going to assume is a result of you assigning 100000m
to the process. Assigning an excessive amount of memory to a process means that when the garbage collector triggers it has to clean up a lot of memory. Your gc is triggering every 10s and taking 3.1s to clear, that's 3.1s where nothing can happen so you're gonna get bad lag spikes.
Not enough memory: Garbage collector triggers too often => stuttering Too much memory: Garbage collector triggers rarely but takes a few seconds to clear => large lag spikes
also look into optimised gc jvm args
0 Only add 400, full Do not add to restore normal operation latest0.log
1 small mod, Compared to 100 large mods 100 times lag