From: Colin Patrick McCabe Date: Wed, 4 Jun 2014 22:00:59 +0000 (-0700) Subject: .bashrc: add MAVEN_OPTS giving Maven more memory X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca5a6929c8632601a9dda26b0defec6d315cf93;p=cmccabe-etc .bashrc: add MAVEN_OPTS giving Maven more memory Signed-off-by: Colin McCabe --- diff --git a/.bashrc b/.bashrc index 07c0f53..cdfad13 100644 --- a/.bashrc +++ b/.bashrc @@ -47,6 +47,9 @@ if [ -f "${JAVA_HOME}" ]; then : else export PATH="${PATH}:${JAVA_HOME}/bin" + + # Maven always needs more memory than the default. + export MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m" fi # Perturb malloc so that we spot bugs quicker! export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))