ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Ant build slower on two cores than on one core?
Date Fri, 07 Mar 2008 13:14:12 GMT
Michael Meyer wrote:
> Hi,
> I have a project that uses javac and a bit latex2html.
> Ant version is 1.7.0. The javac is from the original
> Sun JDK 6 Upodate 4. The OS is Ubuntu Linux.
> When ant invokes the javac compiler the compilation
> lasts longer on two cores than on one core (maxcpus=1
> at the grub prompt).
> This is strange:
> I thought javac is not threaded? But top shows a java
> process with up to 200% cpu usage on my dual core
> machine.
> I tried to limit it with cpulimit -e java -l 100, but
> the cpu usage still rises above 100%.
> Does anybody know how I could get the faster compile
> times that I get with only one core activated - but
> without deactivating the second core?

this is really interesting. I'd thought javac was unthreaded too, but 
even so you'd expect file IO to work in the other CPU, so get a boost 
from the second core.

what happens when you try a different javac, like the eclipse one?

Steve Loughran        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message