How to Resolve jenkins java.lang.outofmemoryerror permgen space issues?
Solution 1 In Windows: Go to environment variable and add following variables export JAVA_OPTS=”-XX:MaxPermSize=512m -Xms512m -Xmx1024m” export GRADLE_OPTS=”-XX:MaxPermSize=512m” export SONAR_RUNNER_OPTS=”-Xmx512m -XX:MaxPermSize=512m” In Linux: In my ~/.bash_profile file, I have set the following 3 variables. Note there are other variables in this file as well i.e. JAVA_HOME, ANT_HOME, SONAR_HOME, SONAR_RUNNER_HOME, etc: export JAVA_OPTS=”-XX:MaxPermSize=512m -Xms512m -Xmx1024m” export … Read more