If an error indicates that the Java virtual machine (JVM) memory is insufficient, use the following method to fix the issue.

Error message

java.lang.OutOfMemoryError

Solution

Specify the memory size in JVM memory settings. For the specific solution, search for JVM memory settings in a search engine.