Get more speed with your MAVEN2 build Print E-mail
User Rating: / 0
PoorBest 
Wednesday, 13 August 2008 19:17

We had serious performance problems with MAVEN in our environment. It seems to be a recurrent problem
for MAVEN... anyway I did came through the following changes...the 2.0.9.db1 Maven2 patch make really
Maven fly!

 mavenlogo2

General settings to speed up Maven:

  • More memory for Maven process, change the launcher of eclipse to set MAVEN_OPTS like this:
    -DMAVEN_OPTS="-Xms64m –Xmx128m"
  • Use the latest version of Maven, but be careful of regressions! the latest as for today is 2.0.9
  • There is a patch available for Maven 2.0.9, which speed up build by 40%. It is just simply day and
    night! try it, you'll love it! Basically Don Brown alter MAVEN2 2.0.9 to

General settings to speed up Eclipse:

  1. Use javaw.exe to start eclipse and not java.exe (more for console base program with a lot of feedback),
    while javaw.exe is more for graphical environment.
  2. Aggressive JIT and double core processors should use:  
     -XX:-UseParallelGC -XX:+AggressiveOpts -XX:-UseConcMarkSweepGC -XX:+UseFastAccessorMethods
  3. Give more memory, MORE MEMORY for eclipse, on a 4GB machine, these are my settings: 
    -Xms768m -Xmx1024m -XX:MaxPermSize=256m
  4. Reduce the number of warning reported by eclipse per compilation unit (class), default is 100, reduce it to 10.
    It help nobody to see a workspace slowing down because of too many warning logging.
    Remove the warnings instead ;-)
  5. SVN console with subversive is too verbose as default, go to eclipse preferences - Team – SVN - Console.
    Logging SVN errors should be enough.
  6. Use a Defragmenter! NTFS fragment fast with so many small files in workspace, every 2 week is a good practice.
  7. I am using Java 1.6u10 (BETA!) and have experience no crash till now,
    being on the edge can be costly in time through. Maven forking should benefit from the reduce java kernel
    size and bootstrap time

Tags See All Tags Add New Tag...

Please Enter New Tags Separated By Comma's
  Or Close

maven  morespeed 
Powered By Joomla Tags

Comments
Add New Search RSS
MrMonkey (203.38.203.xxx) 2008-10-10 08:17:41

The eclipse.ini speedups are awesome!! Will try out the maven ones as well
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
:):grin;)8):p:roll:eek:upset:zzz:sigh:?:cry
:(:x
Please input the anti-spam code that you can read in the image.

3.20 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 


Another articles:

Powered By relatedArticle

Content View Hits : 3452964

Enter Amount: