Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Autocomplete takes ages to load javadocs
Autocomplete takes ages to load javadocs [message #323630] Fri, 04 January 2008 10:35 Go to next message
Eclipse UserFriend
Originally posted by: niewiemek.gmail.com

Hi everyone,

The problem is as follows. My autocomplete javadoc descriptions takes ages
to load.
For example: When I type: 'Cal' and hit ctrl+space the list appears and
the whole eclipse is frozen for about half a minute before javadocs are
loaded. It is very annoying a makes me impossible to code anything. Before
everything was instant.

I use eclipse 3.2 with a bunch of plugins and work with on a large
application that includes many projects.
I have done following to solve the problem: tried another eclipse (3.3)
and reinstalled my JVM to a newer one now I use 1.5 update 14.

Also in a empty workspace I have started a new project that contained only
one class and the behaviour was the same.

Machine I work on is Centrino Duo T2400 (1.83Ghz) with 2Gb RAM and Win XP
SP2.
My JAVA is:
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)

Eclipse is started with following parameters:
-vmargs
-Xms200m
-Xmx500m
-XX:PermSize=64M
-XX:MaxPermSize=128M

I am out of ideas where the problem may be...

Thank you in advance for any clues and ideas you might have

Marcin
Re: Autocomplete takes ages to load javadocs [message #323636 is a reply to message #323630] Fri, 04 January 2008 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Marcin wrote:
> Hi everyone,
>
> The problem is as follows. My autocomplete javadoc descriptions takes
> ages to load.
> For example: When I type: 'Cal' and hit ctrl+space the list appears and
> the whole eclipse is frozen for about half a minute before javadocs are
> loaded. It is very annoying a makes me impossible to code anything.
> Before everything was instant.

Have you recently changed the JRE (or JDK) that you are using? You can
configure JREs in the Eclipse preferences so that the source and/or
Javadoc are local or remote; if there is no source and the Javadoc
location is a remote URL then it is quite possible for the load to take
a while.
I always recommend using a JDK and making sure it has the src.zip in
place. You can check all this in the preferences, just type "jre" in the
filter box at the top. This screencast is old but should help:
http://www.rizzoweb.com/Eclipse/JDKSourceAttachment.html

Hope this helps,
Eric
Re: Autocomplete takes ages to load javadocs [message #323642 is a reply to message #323636] Fri, 04 January 2008 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: niewiemek.gmail.com

Eric Rizzo wrote:

> Marcin wrote:
>> Hi everyone,
>>
>> The problem is as follows. My autocomplete javadoc descriptions takes
>> ages to load.
>> For example: When I type: 'Cal' and hit ctrl+space the list appears and
>> the whole eclipse is frozen for about half a minute before javadocs are
>> loaded. It is very annoying a makes me impossible to code anything.
>> Before everything was instant.

> Have you recently changed the JRE (or JDK) that you are using? You can
> configure JREs in the Eclipse preferences so that the source and/or
> Javadoc are local or remote; if there is no source and the Javadoc
> location is a remote URL then it is quite possible for the load to take
> a while.
> I always recommend using a JDK and making sure it has the src.zip in
> place. You can check all this in the preferences, just type "jre" in the
> filter box at the top. This screencast is old but should help:
> http://www.rizzoweb.com/Eclipse/JDKSourceAttachment.html

Thank you Eric,
Unfortunately this is not the case. I use JDK and have sources attached. I
have also removed javadocs web location and left them empty. The problem
is not only with classes that belong to JDK but also classes that are in
my project and in jar libraries with source codes attached.

Any other ideas?

Regards
Marcin
Re: Autocomplete takes ages to load javadocs [message #323650 is a reply to message #323642] Fri, 04 January 2008 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Marcin wrote:
> Eric Rizzo wrote:
>
>> Marcin wrote:
>>> Hi everyone,
>>>
>>> The problem is as follows. My autocomplete javadoc descriptions
>>> takes ages to load. For example: When I type: 'Cal' and hit
>>> ctrl+space the list appears and the whole eclipse is frozen for
>>> about half a minute before javadocs are loaded. It is very
>>> annoying a makes me impossible to code anything. Before
>>> everything was instant.
>
>> Have you recently changed the JRE (or JDK) that you are using? You
>> can configure JREs in the Eclipse preferences so that the source
>> and/or Javadoc are local or remote; if there is no source and the
>> Javadoc location is a remote URL then it is quite possible for the
>> load to take a while.
>
> Thank you Eric, Unfortunately this is not the case. I use JDK and
> have sources attached. I have also removed javadocs web location and
> left them empty. The problem is not only with classes that belong to
> JDK but also classes that are in my project and in jar libraries with
> source codes attached.
>
> Any other ideas?


Not really. You could follow the advice I just gave in another thread
titled "Debugger very slow." Here's what I wrote for that:

> Only idea I have left is to capture a thread dump (of Eclipse itself,
> not the application being debugged) at a time when you see the pauses
> and see if that reveals any possible culprits. Here's a wiki page
> with instructions to get a thread dump of Eclipse:
> http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
>

Hope this helps,
Eric
Re: Autocomplete takes ages to load javadocs [message #323669 is a reply to message #323630] Fri, 04 January 2008 18:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: niewiemek.gmail.com

I have managed to track the source of the problem.
Javadocs are the problem.
If I have removed sources from my JVM there were no performance problems.
Also when I have tried to access classes that have java-docs comments even
if they are not external classes but included in the project (empty
project with 2 classes on i a fresh workspace) there were described
performance problems.

I can't work without java-docs comments because these are present all over
my code so even if I remove source attachments for all attached libraries
it won't solve the problem.

A temporary solution would be disabling loading java-docs at eclipse level
but I have no clue if it is possible.

TIA for any directions I could follow.

Would a disc fragmentation have anythink to do with performance of loading
my java-docs ?

Rgrds
Marcin
Re: Autocomplete takes ages to load javadocs [message #323671 is a reply to message #323669] Fri, 04 January 2008 19:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Marcin" <niewiemek@gmail.com> wrote in message
news:5f79b351782ec723a5ef2276c25fc104$1@www.eclipse.org...
> Would a disc fragmentation have anythink to do with performance of loading
> my java-docs ?

It is certainly possible. Have you tried using a defragmenting tool lately,
or even looking to see how much fragmentation you have?
Re: Autocomplete takes ages to load javadocs [message #323985 is a reply to message #323630] Tue, 15 January 2008 08:44 Go to previous message
Eclipse UserFriend
Marcin wrote:

> Hi everyone,
>
> The problem is as follows. My autocomplete javadoc descriptions takes
> ages to load.
> For example: When I type: 'Cal' and hit ctrl+space the list appears
> and the whole eclipse is frozen for about half a minute before
> javadocs are loaded.

Is the completion proposal list coming fast or is it that list which is
slow? If you still see this problem simply make a VM dump while waiting
and file a bug report against JDT Text.

Dani

> It is very annoying a makes me impossible to code anything. Before
> everything was instant.
>
> I use eclipse 3.2 with a bunch of plugins and work with on a large
> application that includes many projects. I have done following to
> solve the problem: tried another eclipse (3.3) and reinstalled my JVM
> to a newer one now I use 1.5 update 14.

>
> Also in a empty workspace I have started a new project that contained
> only one class and the behaviour was the same.
>
> Machine I work on is Centrino Duo T2400 (1.83Ghz) with 2Gb RAM and Win
> XP SP2.
> My JAVA is:
> java version "1.5.0_14"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
>
> Eclipse is started with following parameters:
> -vmargs
> -Xms200m
> -Xmx500m
> -XX:PermSize=64M
> -XX:MaxPermSize=128M
>
> I am out of ideas where the problem may be...
>
> Thank you in advance for any clues and ideas you might have
>
> Marcin
>
Previous Topic:Setting document text without losing cursor position?
Next Topic:Product definition in external install location
Goto Forum:
  


Current Time: Thu Jul 17 21:58:45 EDT 2025

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

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

Back to the top