Random Crashes and Unresponsive System

I’m trying to make a game where you move in a 3D environment and a minor issue has appeared. Occasionally when I try to run my program it gives the error “Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: GC overhead limit exceeded” then sometimes crashes. If someone could explain what that means and possible optimizations that’d be great!

Do you have a small snippet that reproduces this issue?
My guts tells me a memory profiler but it might take a big of effort to get something going on this domain. Something simple: Go To File >> Preferences and increase the Max amount of memory to something higher like 512 MB or more and see if it reduces the recurrences.
Also it is important to add how often this happens, like once every 10 tries or every 30 tries? Increasing the memory allocated changes this at all?

Kf