April 11, 2020
Estimated Post Reading Time ~

How to increase JVM heap size for Maven

There might be few instances when you are working on a bigger project and it needs to do a lot of processing while building/packaging the final package of the project. In such projects, there are chances that you’ll get JVM heap size error while building a maven project. You can change the JVM options for Maven2 by setting following environment properties on your system:

Environment variable name: MAVEN_OPTS
JVM value: -Xms512m -Xmx1024m (adjust these values based on your project requirement).


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.