Assign more memory to the JVM to avoid OutOfMemoryError