After playing for a while I get the following message:
And according to task manager, java uses about ~6GB ram when I've only allocated 2GB for minecraft in the launcher. I've tried setting it to 4GB but the problem persist.
Java 7u17 64bit
Windows 8 Pro
i7 2600K @ Standard clock
8GB DDR3 @...