Out of memory errors

Recently upgraded my home server to Pro which required Java to be installed. I’m now getting these errors periodically:

Should I be worried? I’ve had to up the RAM from 2GB to 4GB on the VM as well.

Still looking for advise on this as it appears to be getting worse. Server has now become unresponsive and the VM is struggling to even shutdown. The console is getting these errors every minute or so.