Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Extremely slow "Updating classpath" on Eclipse startup
Extremely slow "Updating classpath" on Eclipse startup [message #512336] Thu, 04 February 2010 17:21 Go to next message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
In my multi-module application, at each eclipse startup, there is
an "updating classpath" phase launched by IAM for each module. Each phase lasts for 2 to 10 minutes, resulting in an extremely slow startup.

The event view does'nt show any event.

Any idea ? I know there has been a lot of discussions on the subject, but I coul'ndt find a tutorial for getting rid of this.

Re: Extremely slow "Updating classpath" on Eclipse startup [message #512380 is a reply to message #512336] Thu, 04 February 2010 19:59 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
are you using the last 0.11.0 ?

how many projects do you have opened?

the maven event view is the one you are checking?

On 2/4/10 9:21 AM, Marc Ban wrote:
> In my multi-module application, at each eclipse startup, there is
> an "updating classpath" phase launched by IAM for each module. Each
> phase lasts for 2 to 10 minutes, resulting in an extremely slow startup.
>
> The event view does'nt show any event.
>
> Any idea ? I know there has been a lot of discussions on the subject,
> but I coul'ndt find a tutorial for getting rid of this.
>
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512481 is a reply to message #512380] Fri, 05 February 2010 09:32 Go to previous messageGo to next message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
Hello Carlos,

Thank you for responding,

Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM 0.11.0.201001181900).

For the moment I only open 7 of my modules in Eclipse. (there
are 15 modules in the full project, and it's a wtp project). All mdules are in a snapshot state.

the full update process take 20-30 mn.

The maven events view doesn't show any event.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512653 is a reply to message #512481] Fri, 05 February 2010 19:08 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
are they jars/wars/...?
the progress view is telling you "updating classpath of project X" ?
what kind of project is that?
do you have all the dependencies in your local repo?

I would need a lot more details, I have projects open, with wars, war
overlays,... and it's not taking that long at all


On 2/5/10 1:32 AM, Marc Ban wrote:
> Hello Carlos,
>
> Thank you for responding,
>
> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
> 0.11.0.201001181900).
>
> For the moment I only open 7 of my modules in Eclipse. (there
> are 15 modules in the full project, and it's a wtp project). All mdules
> are in a snapshot state.
>
> the full update process take 20-30 mn.
> The maven events view doesn't show any event.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512767 is a reply to message #512653] Sun, 07 February 2010 07:10 Go to previous messageGo to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Member
Am 05.02.2010 20:08, schrieb Carlos Sanchez:
> are they jars/wars/...?
> the progress view is telling you "updating classpath of project X" ?
> what kind of project is that?
> do you have all the dependencies in your local repo?
>
> I would need a lot more details, I have projects open, with wars, war
> overlays,... and it's not taking that long at all
>
>
> On 2/5/10 1:32 AM, Marc Ban wrote:
>> Hello Carlos,
>>
>> Thank you for responding,
>>
>> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
>> 0.11.0.201001181900).
>>
>> For the moment I only open 7 of my modules in Eclipse. (there
>> are 15 modules in the full project, and it's a wtp project). All mdules
>> are in a snapshot state.
>>
>> the full update process take 20-30 mn.
>> The maven events view doesn't show any event.
>

Hello Everyone

I was just about to write about the same problem, so I add it here.

I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
taking 10 Minutes on my setup, but still rather long (maybe one or two
minutes).

I was thinking if it wouldnt make more sense to just skip the whole step
of preparing each project on startup again...usually when you leave the
workspace the setup is correct and if I want IAM to prepare the project
(paren pom changes) I can just call "Project -> Clean".

Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
on the same project the it is setup much faster. Of course, when
libraries need to be downloaded it takes a while, I am asuming that
everything is in the lokal Repo already.

regards
-- Marc
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512918 is a reply to message #512653] Mon, 08 February 2010 11:07 Go to previous messageGo to next message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
Hello Carlos,

I have 3 wars, 2 jars, and 1 parent project.
All my dependencies are in the local repository.

"Work off-line" and "download sources" are set in preferences.
All options are set in artifact search preferences.

It's strange,I can't see any message in the log, or in the event view...
Is there any way of activating more logs ?
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513081 is a reply to message #512767] Mon, 08 February 2010 13:36 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
On 2/7/10 4:04 AM, Marc Schlegel wrote:
> I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
> taking 10 Minutes on my setup, but still rather long (maybe one or two
> minutes).

that's pretty much what we can get, 1-2 minutes for 4 projects is not
too bad. Eclipse is not particularly fast.

>
> I was thinking if it wouldnt make more sense to just skip the whole step
> of preparing each project on startup again...usually when you leave the
> workspace the setup is correct and if I want IAM to prepare the project
> (paren pom changes) I can just call "Project -> Clean".

That is supposed to happen already. If the project has no errors and the
classpath was already computed the startup time is lower


>
> Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
> on the same project the it is setup much faster. Of course, when
> libraries need to be downloaded it takes a while, I am asuming that
> everything is in the lokal Repo already.
>
> regards
> -- Marc
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513085 is a reply to message #512918] Mon, 08 February 2010 14:00 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
You need to have the event view open in order to capture the events

window - show view - other - apache maven - events

you can filter there the severity of the logs.

Not everything shows up there, but it's a good place to start


On 2/8/10 3:07 AM, Marc Ban wrote:
> Hello Carlos,
> I have 3 wars, 2 jars, and 1 parent project.
> All my dependencies are in the local repository.
>
> "Work off-line" and "download sources" are set in preferences.
> All options are set in artifact search preferences.
>
> It's strange,I can't see any message in the log, or in the event view...
> Is there any way of activating more logs ?
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513200 is a reply to message #512336] Tue, 09 February 2010 11:01 Go to previous messageGo to next message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
Carlos,

I found a solution !

The event view was already open, but I hadn't seen the filter options.
I set the filter to "debug", and saw a message : maven was stuck in trying to download sources for jars in all repositories,
and not founding them anywhere.

I deactivated the "download sources" option in maven preferences, and starting time is now OK .

The only problem remaining is that the option is not very useful, as I can't activate it.

I don't know if it is a bug, but I think there should be at least a serious warning on that option.


Thanks anyway for your responses. I hope this discussion will help other IAM users too.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513321 is a reply to message #513200] Tue, 09 February 2010 13:26 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
you dont have internet connectivity from that machine, or use a proxy?
at startup it'll try to download the sources, but if they are not
present it will just take the time it takes to ping a remote server. I
think the issue is that instead your http requests are timing out, which
may mean 30 seconds or more for each missing source

even with "download sources" unchecked you can right click on the
project and in the Maven menu there's a download sources command


On 2/9/10 3:01 AM, Marc Ban wrote:
> Carlos,
>
> I found a solution !
>
> The event view was already open, but I hadn't seen the filter options.
> I set the filter to "debug", and saw a message : maven was stuck in
> trying to download sources for jars in all repositories, and not
> founding them anywhere.
>
> I deactivated the "download sources" option in maven preferences, and
> starting time is now OK .
>
> The only problem remaining is that the option is not very useful, as I
> can't activate it.
> I don't know if it is a bug, but I think there should be at least a
> serious warning on that option.
>
>
> Thanks anyway for your responses. I hope this discussion will help other
> IAM users too.
>
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513467 is a reply to message #513200] Wed, 10 February 2010 10:34 Go to previous messageGo to next message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
I use the proxy of my company, but can"t say what impact it has on Internet search performance.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513724 is a reply to message #513467] Wed, 10 February 2010 18:42 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
probably is not properly configured in your $HOME/.m2/settings.xml
and/or Eclipse Proxy preferences, and that causes the requests to time out


On 2/10/10 2:34 AM, Marc Ban wrote:
> I use the proxy of my company, but can"t say what impact it has on
> Internet search performance.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572065 is a reply to message #512380] Fri, 05 February 2010 09:32 Go to previous message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
Hello Carlos,

Thank you for responding,

Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM 0.11.0.201001181900).

For the moment I only open 7 of my modules in Eclipse. (there
are 15 modules in the full project, and it's a wtp project). All mdules are in a snapshot state.

the full update process take 20-30 mn.

The maven events view doesn't show any event.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572094 is a reply to message #572065] Fri, 05 February 2010 19:08 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
are they jars/wars/...?
the progress view is telling you "updating classpath of project X" ?
what kind of project is that?
do you have all the dependencies in your local repo?

I would need a lot more details, I have projects open, with wars, war
overlays,... and it's not taking that long at all


On 2/5/10 1:32 AM, Marc Ban wrote:
> Hello Carlos,
>
> Thank you for responding,
>
> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
> 0.11.0.201001181900).
>
> For the moment I only open 7 of my modules in Eclipse. (there
> are 15 modules in the full project, and it's a wtp project). All mdules
> are in a snapshot state.
>
> the full update process take 20-30 mn.
> The maven events view doesn't show any event.
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572132 is a reply to message #512653] Sun, 07 February 2010 12:04 Go to previous message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Member
Am 05.02.2010 20:08, schrieb Carlos Sanchez:
> are they jars/wars/...?
> the progress view is telling you "updating classpath of project X" ?
> what kind of project is that?
> do you have all the dependencies in your local repo?
>
> I would need a lot more details, I have projects open, with wars, war
> overlays,... and it's not taking that long at all
>
>
> On 2/5/10 1:32 AM, Marc Ban wrote:
>> Hello Carlos,
>>
>> Thank you for responding,
>>
>> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
>> 0.11.0.201001181900).
>>
>> For the moment I only open 7 of my modules in Eclipse. (there
>> are 15 modules in the full project, and it's a wtp project). All mdules
>> are in a snapshot state.
>>
>> the full update process take 20-30 mn.
>> The maven events view doesn't show any event.
>

Hello Everyone

I was just about to write about the same problem, so I add it here.

I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
taking 10 Minutes on my setup, but still rather long (maybe one or two
minutes).

I was thinking if it wouldnt make more sense to just skip the whole step
of preparing each project on startup again...usually when you leave the
workspace the setup is correct and if I want IAM to prepare the project
(paren pom changes) I can just call "Project -> Clean".

Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
on the same project the it is setup much faster. Of course, when
libraries need to be downloaded it takes a while, I am asuming that
everything is in the lokal Repo already.

regards
-- Marc
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572148 is a reply to message #512653] Mon, 08 February 2010 11:07 Go to previous message
Marc Ban is currently offline Marc BanFriend
Messages: 10
Registered: February 2010
Junior Member
Hello Carlos,

I have 3 wars, 2 jars, and 1 parent project.
All my dependencies are in the local repository.

"Work off-line" and "download sources" are set in preferences.
All options are set in artifact search preferences.

It's strange,I can't see any message in the log, or in the event view...
Is there any way of activating more logs ?
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572181 is a reply to message #572132] Mon, 08 February 2010 18:26 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
On 2/7/10 4:04 AM, Marc Schlegel wrote:
> I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
> taking 10 Minutes on my setup, but still rather long (maybe one or two
> minutes).

that's pretty much what we can get, 1-2 minutes for 4 projects is not
too bad. Eclipse is not particularly fast.

>
> I was thinking if it wouldnt make more sense to just skip the whole step
> of preparing each project on startup again...usually when you leave the
> workspace the setup is correct and if I want IAM to prepare the project
> (paren pom changes) I can just call "Project -> Clean".

That is supposed to happen already. If the project has no errors and the
classpath was already computed the startup time is lower


>
> Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
> on the same project the it is setup much faster. Of course, when
> libraries need to be downloaded it takes a while, I am asuming that
> everything is in the lokal Repo already.
>
> regards
> -- Marc
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572208 is a reply to message #572148] Mon, 08 February 2010 18:45 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
You need to have the event view open in order to capture the events

window - show view - other - apache maven - events

you can filter there the severity of the logs.

Not everything shows up there, but it's a good place to start


On 2/8/10 3:07 AM, Marc Ban wrote:
> Hello Carlos,
> I have 3 wars, 2 jars, and 1 parent project.
> All my dependencies are in the local repository.
>
> "Work off-line" and "download sources" are set in preferences.
> All options are set in artifact search preferences.
>
> It's strange,I can't see any message in the log, or in the event view...
> Is there any way of activating more logs ?
Previous Topic:IAM & GWT plugin for multi-module project
Next Topic:Extremely slow "Updating classpath" on Eclipse startup
Goto Forum:
  


Current Time: Fri Mar 29 05:13:24 GMT 2024

Powered by FUDForum. Page generated in 0.04380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top