DevOps / Maven Surefire Plugin Interview Questions
How do you increase heap size for tests without touching the main build JVM?
Set <argLine>-Xmx2g</argLine> in Surefire's configuration. Because argLine only applies to the forked JVM that executes the tests, the memory settings of the JVM running Maven itself remain completely untouched.
More Related questions...