[FTB Beyond] High CPU usage spikes issue (and fix)

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
P

p4ndepravity

Guest
Title [FTB Beyond] High CPU usage spikes issue (and fix)

Launcher Type MultiMC

Modpack FTB Beyond

Modpack version 1.5.3

Have you modified the pack? No

Link to log file http://paste.feed-the-beast.com/view/3d846d07

Details of the issue I was having terrible lag spikes for 1-3 seconds every 15 seconds, or so. I used YourKit Java to check the performance of Minecraft (shown here: https://redd.it/66jaaa). I found that the primary issue was aggressive garbage collection due to inadequate memory allocation. To fix the problem I set the minimum memory to ~2.5GB and the maximum memory to ~6GB. I also added a parallel garbage collection param, but I am not sure how large of an effect this had. I now run very smoothly despite frequent dimensional teleportation and several loaded chunks across multiple dimensions. I hope this helps someone with similar issues.