Autocrafting Serverside Lag (With Samples)
TheFlash787 opened this issue ยท 1 comments
Describe the bug
Hey! So we started to notice lag spikes on the server ranging from 7 seconds up to 20 seconds very frequently. I first ran a LagGoggles profile to see if it was a silly block that might've caused it, but as we know from #4131, all I saw was it using 200% or so as an event subscriber. So then I ran an ongoing Sampler profile to grab some NPS samples, which of course show AE2 using up all of the ticktime in those spikes. The issue basically being that there are lots of crafting recipes which AE2 can't handle easily.
With the issue I referenced, I was also looking for a response to their actual suggestion (that being an AE2 setup profiler), where perhaps when you run a scan it will gather (or it could on an config-based interval, print out) which AE2 systems (by it's controller position) are using the most ticktime. It could even provide other information such as recipes detected, running/pending crafting tasks, etc. I feel that this will really help out all server owners who are required to use AE2 on the servers.
To Reproduce
- Having a server with a technology based modpack (such as Omnifactory) will help since it's entirely based around AE2 autocrafting early-to-mid-game.
- Setup average autocrafting for most components needed for progression in the modpack.
- Sit back and watch the spikes happen
Expected behavior
I would expect that AE2 would at least try to streamline a large amount of AE2 crafting recipes much easier, without using up too much of the ticktime
Additional context
Channels are enabled, which helped the performance initially
Environment
- Minecraft Version: 1.12.2
- AE2 Version:
appliedenergistics2-rv6-stable-6.jar
- Forge Version:
forge-1.12.2-14.23.5.2838
- Mod List: https://pastebin.com/jFJDabAs