It depends on which JVM instance requires more memory. For example, if tests are deployed (by default) and crash due to OutOfMemoryError, try setting up a plugin that runs them:
<plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xmx1024m</argLine> </configuration> </plugin>
OR
Beyond the heap memory. You must increase the perm size as well to allow this exception in maven to use these variables in an environment variable. And sometimes itβs also good to extend the size of the memory in memory -
Set the environment variable:
variable name: variable value MAVEN_OPTS: -Xmx512m -XX: MaxPermSize = 256m
Compiled data from a resource
source share