Re: I need to share how to improve maven's performance
Sweet. We can look at the various platforms and see if we can apply this option across the board. Even if it's only for linux we can add it there. On Aug 19, 2010, at 9:06 AM, kristian wrote: > hi, > > since I found out how to improve performance of maven3 significantly > on my linux box, I thought I need to share this: > > just set > $ export MAVEN_OPTS=-client > > see a little "benchmark" > http://gist.github.com/538194 > > the improvement remains even for longer maven runs. > > regards, Kristian > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - A language that doesn’t affect the way you think about programming is not worth knowing. -— Alan Perlis
Re: I need to share how to improve maven's performance
here are some explanations: [1] and [2] [1] http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_default [2] http://www.oracle.com/technetwork/java/ergo5-140223.html Le jeudi 19 août 2010, Jason van Zyl a écrit : > Sweet. We can look at the various platforms and see if we can apply this > option across the board. Even if it's only for linux we can add it there. > > On Aug 19, 2010, at 9:06 AM, kristian wrote: > > hi, > > > > since I found out how to improve performance of maven3 significantly > > on my linux box, I thought I need to share this: > > > > just set > > $ export MAVEN_OPTS=-client > > > > see a little "benchmark" > > http://gist.github.com/538194 > > > > the improvement remains even for longer maven runs. > > > > regards, Kristian > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > Thanks, > > Jason > > -- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > - > > A language that doesn’t affect the way you think about programming is not > worth knowing. > > -— Alan Perlis - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: I need to share how to improve maven's performance
Jason van Zyl-2 wrote: > > Sweet. We can look at the various platforms and see if we can apply this > option across the board. Even if it's only for linux we can add it there. > > On Aug 19, 2010, at 9:06 AM, kristian wrote: > >> hi, > snip... > So can someone explain exactly what this flag is doing? Regards, Ron -- View this message in context: http://maven.40175.n5.nabble.com/I-need-to-share-how-to-improve-maven-s-performance-tp2641164p2642828.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: I need to share how to improve maven's performance
To sum up: - Maven's JVM under 32-bits windows is not concerned. Hotspot always defaults to client vm under Windows. - Then for Linux or other platforms, with current typical machines, it's very often defaulting to Server VM. But it can vary, and is precisely explained in the link Hervé put (more directly, see here : http://www.oracle.com/technetwork/java/ergo5-140223.html#0.0.%20Garbage%20collector,%20heap,%20and%20runtime%20compiler%7Coutline ). For the record, I just checked on my 32-bits windows box, and there's no difference between the two executions. Hope this helps. Cheers 2010/8/21 Hervé BOUTEMY > here are some explanations: [1] and [2] > > [1] > > http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_default > > [2] http://www.oracle.com/technetwork/java/ergo5-140223.html > > Le jeudi 19 août 2010, Jason van Zyl a écrit : > > Sweet. We can look at the various platforms and see if we can apply this > > option across the board. Even if it's only for linux we can add it there. > > > > On Aug 19, 2010, at 9:06 AM, kristian wrote: > > > hi, > > > > > > since I found out how to improve performance of maven3 significantly > > > on my linux box, I thought I need to share this: > > > > > > just set > > > $ export MAVEN_OPTS=-client > > > > > > see a little "benchmark" > > > http://gist.github.com/538194 > > > > > > the improvement remains even for longer maven runs. > > > > > > regards, Kristian > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > Thanks, > > > > Jason > > > > -- > > Jason van Zyl > > Founder, Apache Maven > > http://twitter.com/jvanzyl > > - > > > > A language that doesn’t affect the way you think about programming is not > > worth knowing. > > > > -— Alan Perlis > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Baptiste MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: I need to share how to improve maven's performance
On 08/23/2010 10:55 AM, Baptiste MATHUS wrote: - Then for Linux or other platforms, with current typical machines, it's very often defaulting to Server VM. But it can vary, and is precisely explained in the link Hervé put (more directly, see here : http://www.oracle.com/technetwork/java/ergo5-140223.html#0.0.%20Garbage%20collector,%20heap,%20and%20runtime%20compiler%7Coutline ). This describes -client/-server defaults for Java version 1.4.2 only, it may change across newer versions. In fact I didn't google it for Java6, but there is a small note on Wikipedia for Java7: Allow the virtual machine to use both the Client and Server compilers in the same session with a technique called Tiered compilation: * The Client would be used at startup (because it is good at startup and for small applications), * The Server would be used for long-term running of the application (because it outperforms the Client compiler for this). http://en.wikipedia.org/wiki/Java_performance#Future_improvements Martin Schayna - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: I need to share how to improve maven's performance
have a look at some tips how to improve startup time for jruby and some of it holds true for maven as well: http://blog.headius.com/2010/03/jruby-startup-time-tips.html with regards, Kristian 2010/8/23 Martin Schayna : > On 08/23/2010 10:55 AM, Baptiste MATHUS wrote: >> >> - Then for Linux or other platforms, with current typical machines, >> it's >> very often defaulting to Server VM. >> But it can vary, and is precisely explained in the link Hervé put (more >> directly, see here : >> >> http://www.oracle.com/technetwork/java/ergo5-140223.html#0.0.%20Garbage%20collector,%20heap,%20and%20runtime%20compiler%7Coutline >> ). >> > > This describes -client/-server defaults for Java version 1.4.2 only, it may > change across newer versions. In fact I didn't google it for Java6, but > there is a small note on Wikipedia for Java7: > > Allow the virtual machine to use both the Client and Server compilers in the > same session with a technique called Tiered compilation: > * The Client would be used at startup (because it is good at startup and > for small applications), > * The Server would be used for long-term running of the application > (because it outperforms the Client compiler for this). > > http://en.wikipedia.org/wiki/Java_performance#Future_improvements > > Martin Schayna > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org