You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fenallen <fe...@gmx.net> on 2005/10/03 12:17:26 UTC

1.1-beta-2 very slow

Hi,

I am just starting to look at moving one of our projects over to maven 
1.1 and am testing out the build on the beta-2 release.  There are of 
course of few minor issues to sort out; most of which project.xml errors 
which were overlooked by 1.0.2 and which I am glad to now notice and 
correct. 

What suprises me however is how slow it seems.  The build is 3 or 4 
times slower than when using maven-1.0.2.
Surely this can't be normal?

Allen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by Geoffrey <jc...@hotmail.com>.

fenallen wrote:
> Thanks for the suggestions Brett.  I already have the /lib/endorsed dir 
> setup in my jdk1.4.2.  Unfortunately, our (rather large) codebase is 
> refusing to compile against jdk 1.5 at the mo.

Try setting the source property of the java plugin to 1.4 (or even 1.3 
or 1.2 if you use assert as an identifier)
JDK 1.5 compiles by default for source 1.5, while JDK 1.4 compiles by 
default - I believe, but I am unsure - to 1.2.

> 
> However....
> 
> On further investigation, my suspicions point towards the <echo>  tag of 
> all things.
> 
> By running a simple goal like this:
> 
> <!-- This method is just for development testing purposes!!!!! -->
>  <goal name="plop">
>    <util:tokenize var="tokens" 
> delim=",">1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20</util:tokenize> 
> 
>    <j:forEach var="token" items="${tokens}">
>      <echo>Token: ${token}</echo>
>    </j:forEach>
>  </goal>
> 
> with maven -o -e plop
> 
> The list of numbers is of course echoed to the shell.
> 
> I can almost count aloud as fast as this happens !!!!
> Something is amiss.
> 
> Allen.

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by Brett Porter <br...@gmail.com>.
On 10/4/05, fenallen <fe...@gmx.net> wrote:
> I don't have too much experience with profiling although I have managed
> to get it running in JProfiler.  I have an html output of the call tree
> which I can send directly to your email address if you like. I am
> assuming I cannot/should not  attached files to these mail.

Does the call tree show where time is spent?

 I'm not sure if it will help, but we'll see. You can send it to me
privately if you like.

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by fenallen <fe...@gmx.net>.
Brett Porter wrote:

>Are you able to hook up a profiler to it?
>
>Unfortunately I am not able to replicate...
>
>
>  
>
Brett,

I don't have too much experience with profiling although I have managed 
to get it running in JProfiler.  I have an html output of the call tree 
which I can send directly to your email address if you like. I am 
assuming I cannot/should not  attached files to these mail.

For what it's worth, I don't see anything unexpected in the output but 
what do I know?

Allen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by Brett Porter <br...@gmail.com>.
Are you able to hook up a profiler to it?

Unfortunately I am not able to replicate...

- Brett

On 10/3/05, fenallen <fe...@gmx.net> wrote:
> Thanks for the suggestions Brett.  I already have the /lib/endorsed dir
> setup in my jdk1.4.2.  Unfortunately, our (rather large) codebase is
> refusing to compile against jdk 1.5 at the mo.
>
> However....
>
> On further investigation, my suspicions point towards the <echo>  tag of
> all things.
>
> By running a simple goal like this:
>
> <!-- This method is just for development testing purposes!!!!! -->
>   <goal name="plop">
>     <util:tokenize var="tokens"
> delim=",">1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20</util:tokenize>
>     <j:forEach var="token" items="${tokens}">
>       <echo>Token: ${token}</echo>
>     </j:forEach>
>   </goal>
>
> with maven -o -e plop
>
> The list of numbers is of course echoed to the shell.
>
> I can almost count aloud as fast as this happens !!!!
> Something is amiss.
>
> Allen.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by fenallen <fe...@gmx.net>.
Thanks for the suggestions Brett.  I already have the /lib/endorsed dir 
setup in my jdk1.4.2.  Unfortunately, our (rather large) codebase is 
refusing to compile against jdk 1.5 at the mo.

However....

On further investigation, my suspicions point towards the <echo>  tag of 
all things.

By running a simple goal like this:

<!-- This method is just for development testing purposes!!!!! -->
  <goal name="plop">
    <util:tokenize var="tokens" 
delim=",">1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20</util:tokenize>
    <j:forEach var="token" items="${tokens}">
      <echo>Token: ${token}</echo>
    </j:forEach>
  </goal>

with maven -o -e plop

The list of numbers is of course echoed to the shell.

I can almost count aloud as fast as this happens !!!!
Something is amiss.

Allen.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by Brett Porter <br...@gmail.com>.
On 10/3/05, fenallen <fe...@gmx.net> wrote:
> Brett Porter wrote:
> Our build is broken down into several steps.  The step containing the
> bulk of the compilation is around 50% slower than with 1.0.2.  At the
> end of the build is a step containing lots of xlst transformations and
> this is very slow taking aroung 3 times as long.

JDK 1.4? It could be that the built xml parser is not as good as
xerces. What happens if you use jdk 1.5/add xerces to the endorsed
path like in m1.0.2?

> Another observation is that it seems noticeably slower when performing
> file system operations too.  Any echo statements scroll by much slower.

Another said this, but I have no idea what could be causing it.

> If it makes a difference I am running this on Windows as I am at work. :(

Me too.

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by fenallen <fe...@gmx.net>.
Brett Porter wrote:

> Is this the case on different builds? Repeated attempts of the same build?
>
>  
>
Looking into this further I would say that it is more like 2.5 times 
slower and yes, very repeatable.

Our build is broken down into several steps.  The step containing the 
bulk of the compilation is around 50% slower than with 1.0.2.  At the 
end of the build is a step containing lots of xlst transformations and 
this is very slow taking aroung 3 times as long.

Another observation is that it seems noticeably slower when performing 
file system operations too.  Any echo statements scroll by much slower.

If it makes a difference I am running this on Windows as I am at work. :(

Allen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: 1.1-beta-2 very slow

Posted by Brett Porter <br...@gmail.com>.
On 10/3/05, fenallen <fe...@gmx.net> wrote:
> What suprises me however is how slow it seems.  The build is 3 or 4
> times slower than when using maven-1.0.2.
> Surely this can't be normal?

In my experience it has been faster.

Is this the case on different builds? Repeated attempts of the same build?

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org