I cannot figure out what is wrong with Minecraft on my computer. I have 8gb of ram and a RX 580 graphics card. I constantly get lag spikes and a loss of frames while playing. I have tried uninstalling and reinstalling java a couple times. I've also tried allocating different amounts of ram. It seems to occur no matter what i try. I've attached a photo of whats occurring. It seems like the lag spikes occur every time that the memory is close to 100%. This issue occurs mainly while using mods but i have notice reduced fps in vanilla minecraft as well. Please help!