Optimize the Maven Surefire JVM to speedup tests #246
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
given we are forking the JVM for all the tests local testing (with several plugins) has shown that we can be much faster if we do not try and do expensive JIT compilation.
Also set the initial memory to the same as the maximum as this helps too.
This will not work if the JVM does not recognise the flags (they are available in hotspot in JDK7+) but other JVMs (j9?) are unknown about. that said the magority of plugin developers most likely use a hotspot based JVM and this is what we use in ci.jenkins.ci so I would recommend this and then let plugins whose authors build on something else adjust as nescessary.