maven跑surefire report经常回报内存不足:
Error occurred during initialization of VM
Could not reserve enough space for object heapCould not create the Java virtual machine.
解决方法:设置jvm参数如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
...
<argLine>-Xmx690m -XX:MaxPermSize=512m -noverify</argLine>
</configuration>
</plugin>