User blog comment:CaptCaptain/RAM Issues./@comment-4750818-20150814113910/@comment-25533095-20150814115422

That's exactly what happens when Minecraft runs out of memory. When it happens while launching, it results in a crash, but when it's mid-game, it creates these lag spikes.