java.lang.OutOfMemoryError: PermGen space (Maven/Jetty)
If you get an error OutOfMemory error while doing mvn site, to solve this problem one needs to increase the memory available to JVM (i.e. to Maven -- which invokes Jetty)
Increasing memory by setting env variable
export MAVEN_OPTS= "-Xmx1024m -Xms1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
Reference:
http://vikashazrati.wordpress.com/2007/07/26/quicktip-how-to-increase-the-java-heap-memory-for-maven-2-on-linux/
https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
|
No comments:
Post a Comment