Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread Kristian Rosenvold
You are right that the -T option and surefire's parallelism are complementary. Given equal-sized modules the effect tweaking surefire vs -T parallelism should be similar. The fork/thread related parameters to surefire have NO relation to the -T parameters, which means reuseForks is ineffective in

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread laredotornado-3
I suspect you're simply trashing your os or the VM. Look at disk/memory usage indicators OS level Is there any way to get the modules I'm running in parallel to use different heaps or VMs so they are not stepping on each other? I allocated 4 GB of memory and my JUnit tests aren't doing taht

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread Kristian Rosenvold
I suggest you set forkCount to 1 on surefire/failsafe, which will run all the tests in separate VMs and *also* actually make the argLine command work. Currently, you are not using 4GB for your tests. Kristian 2014-10-09 16:51 GMT+02:00 laredotornado-3 laredotorn...@gmail.com: I suspect you're

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread Laird Nelson
On Thu, Oct 9, 2014 at 10:48 AM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: I suggest you set forkCount to 1 on surefire/failsafe, which will run all the tests in separate VMs and *also* actually make the argLine command work. Currently, you are not using 4GB for your tests. I

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread laredotornado-3
Kristian, Your 'actually make the argLine command work' comment is killing me. What are you talking about? Everything I have read indicates that the correct way to set memory for surefire/failsafe plugins is to have this in the configuration -- argLine-Xmx4096m/argLine. Laird, Thanks for your

Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread laredotornado-3
Hi, I’m using Maven 3.2.3, Spring 3.2.11.RELEASE, JUnit 4.11, Java 6, and the Surefire/Failsafe 2.17 plugins. I’m trying to figure out why when running a couple of modules in parallel, it takes much longer than when I run them individually. I’m trying to figure out ways to speed up my build. I

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread Karl Heinz Marbaise
Hi, have paid attention to forkCount ? How did you set it? How many core's do you have ? On 10/8/14 8:44 PM, laredotornado-3 wrote: Hi, I’m using Maven 3.2.3, Spring 3.2.11.RELEASE, JUnit 4.11, Java 6, and the Surefire/Failsafe 2.17 plugins. I’m trying to figure out why when running a

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread Jörg Schaible
Hi, laredotornado-3 wrote: Hi, I’m using Maven 3.2.3, Spring 3.2.11.RELEASE, JUnit 4.11, Java 6, and the Surefire/Failsafe 2.17 plugins. I’m trying to figure out why when running a couple of modules in parallel, it takes much longer than when I run them individually. I’m trying to

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread laredotornado-3
Hi, Karl, to answer your question, I only have one processor on my MacBook Pro (10.9.5), which is a 2.2 GHz Intel Core i7. I haven't set forkCount in either my surefire or failsafe plugin (configs listed in question) because I was under the impression that the -T option took care of that. Jörg,