This article will explain you the cause(s) and solution(s) for this console error.
Error in console:
java.lang.OutOfMemoryError: Java heap space
The server ran out of RAM to perform the required tasks and causes a crash.
- Remove some (heavy) plugins or mods.
- Upgrade your server to give it more RAM.