N/APosted on - 06/26/2012
I am using maven 2 on Linux. Sometimes I get an Out Of Memory error, while doing mvn site. I was trying many times but I cannot solve this error. Can anybody tell me, how I fix this error for maven2 on Linux.
How do increase the Java heap memory?
Using any versions of Maven doesn’t require a certain amount of RAM just to be able to run it. And also Maven applications are tested to work on Windows NT, Windows XP, Fedora Core, and Macintosh OS X operating systems. That’s why I don’t think that this is related to system incompatibility of some sort. If this is the first time it happened, try restarting your computer then try it again. See if you will get the out of memory error again.
If you are still getting this error, try reinstalling Maven. Uninstall the program then check your computer for any possible errors. Use a disk utility application to check the system. Install the application again after this then check if that error will appear again. Since you are still using an older version of Maven, try upgrading your present version to Maven 3.0.4. To download this latest version, you may visit Apache Maven Project — Download Maven 3.0.4.