Tuesday, November 29, 2011

Errors and how to avoid

If you get permgen space error or OOM (out of memory) error in eclipse add below in vm arguments:

-Xms1G -XX:MaxPermSize=256m

You can modify the same in eclipse.ini
-XX:MaxPermSize=512m

To pass vm arguments in command prompt while running maven, please use below command : 
mvn test -Dtest=\*ServiceTest -DfailIfNoTests=false -Dfork=true -Dmaven.test.failure.ignore=true -DargLine="-Xms512m -Xmx1024m -XX:MaxPermSize=512m" -DforkMode=pertest

No comments :

// Below script tag for SyntaxHighLighter