Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse is extremely slow
Eclipse is extremely slow [message #213521] Sun, 03 June 2007 20:09 Go to next message
Jean-Christophe Deprez is currently offline Jean-Christophe DeprezFriend
Messages: 133
Registered: July 2009
Senior Member
Hi,

I'm new to eclipse, I'm using it on Ubuntu Feisty Fawn with Kubuntu desktop
manager. My CPU is a dual core AMD 64 bit, with 2GB of ram, so as far as I
can tell there's no reason for anything to be slow.

The editor often takes more than 1 second to display a character on the
screen after I press the key. When hitting Ctrl+Space to bring up content
assist it takes up to 30 seconds sometimes. There's various other examples,
but in general it just seems like it bogs down my whole system. A line that
would take me 3 seconds to type in a normal editor can take up to 30 seconds
to type in eclipse due to lag.

I hope I just have something configured incorrectly. Any help appreciated
Re: Eclipse is extremely slow [message #213530 is a reply to message #213521] Sun, 03 June 2007 22:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Zachary Turner" <nobody@nowhere.com> wrote in message
news:f3v75q$u90$1@build.eclipse.org...
> Hi,
>
> I'm new to eclipse, I'm using it on Ubuntu Feisty Fawn with Kubuntu
> desktop manager. My CPU is a dual core AMD 64 bit, with 2GB of ram, so as
> far as I can tell there's no reason for anything to be slow.
>
> The editor often takes more than 1 second to display a character on the
> screen after I press the key. When hitting Ctrl+Space to bring up content
> assist it takes up to 30 seconds sometimes. There's various other
> examples, but in general it just seems like it bogs down my whole system.
> A line that would take me 3 seconds to type in a normal editor can take up
> to 30 seconds to type in eclipse due to lag.
>
> I hope I just have something configured incorrectly. Any help appreciated

Make sure your command line or eclipse.ini has VM args that give it enough
memory. The amount of RAM on your machine is largely irrelevant.

What version of Eclipse are you using? What VM are you using? And, what
Eclipse components have you installed? If you go to Help -> About there's a
button to click to get config details.

Are there any entries in the .log file (workspace/.metadata/.log)?
Re: Eclipse is extremely slow [message #213538 is a reply to message #213521] Sun, 03 June 2007 22:39 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Zachary Turner wrote:

> Hi,

> I'm new to eclipse, I'm using it on Ubuntu Feisty Fawn with Kubuntu desktop
> manager. My CPU is a dual core AMD 64 bit, with 2GB of ram, so as far as I
> can tell there's no reason for anything to be slow.

> The editor often takes more than 1 second to display a character on the
> screen after I press the key. When hitting Ctrl+Space to bring up content
> assist it takes up to 30 seconds sometimes. There's various other examples,
> but in general it just seems like it bogs down my whole system. A line that
> would take me 3 seconds to type in a normal editor can take up to 30 seconds
> to type in eclipse due to lag.

> I hope I just have something configured incorrectly. Any help appreciated

Hi. Based on previous posts on Eclipse and Ubuntu, the first thing to
check is that you are using the correct version of the JVM. It seems that
Ubuntu ships with the Gnu version, not the Sun version. Make sure you are
running the Sun JVM or JDK (both available free to download from the Sun
Java web site).

Then, to quote a recent post, "You specify the VM by adding a -vm
/path/to/vm/java_executable on the command line used to launch eclipse".

Hope this helps. Let us know. Thanks. Mark Dexter
Re: Eclipse is extremely slow [message #213601 is a reply to message #213538] Mon, 04 June 2007 07:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.pellaton.li

Hi

> Hi. Based on previous posts on Eclipse and Ubuntu, the first thing to
> check is that you are using the correct version of the JVM. It seems that
> Ubuntu ships with the Gnu version, not the Sun version. Make sure you are
> running the Sun JVM or JDK (both available free to download from the Sun
> Java web site).
>
> Then, to quote a recent post, "You specify the VM by adding a -vm
> /path/to/vm/java_executable on the command line used to launch eclipse".

sudo apt-get install sun-java(5|6)-jdk

or for older blackdown 1.4 release

sudo apt-get install j2sdk1.4

is easier to handle. Ubuntu has the Sun JDK available as package, but
does not by default install them.

To remove the Gnu Java use (after you have installed a sun jdk):

sudo apt-get remove gcj-4.1-base

----
Besides that: reasons for slow Eclipses we had at our company so far:
- on-access virus scanner permanently scanning workspace/eclipse
installation files
- workspace/eclipse on (slow) network drive
- workspace initially created on a samba-drive was moved to local or
vice versa (I don't know why/what, but it messed up the unix access
rights which made eclipse constantly complain about not being able to
write some files...)
- wrong vm parameters
- wrong memory parameters (we use -vmargs -xmX1024m -xmS256m). Can be
checked in Window>About>Configuration Details
- too slow machine (that's obviously not the case with your machine)

HTH

Michael
Re: Eclipse is extremely slow [message #213696 is a reply to message #213601] Mon, 04 June 2007 16:56 Go to previous messageGo to next message
Zachary Turner is currently offline Zachary TurnerFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks for the help, I followed the suggestions and it's much faster now. I
went ahead and left the Gnu JRE on the machine, but I used the -vm switch to
point to the Sun JRE.

Even with Sun JRE installed and configured as the system default for
providing all Java services, Eclipse still opted to use Gnu Java, unless I
explicitly forced it away from that with the -vm switch. It seems a little
ridiculous that Eclipse would default to a configuration that literally
makes it unusable (imagine taking an hour to type 15 lines of code,
literally). Is this considered a "bug" worthy of reporting? Certainly
seems like it to me

"Michael Pellaton" <newsgroups@pellaton.li> wrote in message
news:f40env$t2b$1@build.eclipse.org...
> Hi
>
>> Hi. Based on previous posts on Eclipse and Ubuntu, the first thing to
>> check is that you are using the correct version of the JVM. It seems that
>> Ubuntu ships with the Gnu version, not the Sun version. Make sure you are
>> running the Sun JVM or JDK (both available free to download from the Sun
>> Java web site).
>>
>> Then, to quote a recent post, "You specify the VM by adding a -vm
>> /path/to/vm/java_executable on the command line used to launch eclipse".
>
> sudo apt-get install sun-java(5|6)-jdk
>
> or for older blackdown 1.4 release
>
> sudo apt-get install j2sdk1.4
>
> is easier to handle. Ubuntu has the Sun JDK available as package, but
> does not by default install them.
>
> To remove the Gnu Java use (after you have installed a sun jdk):
>
> sudo apt-get remove gcj-4.1-base
>
> ----
> Besides that: reasons for slow Eclipses we had at our company so far:
> - on-access virus scanner permanently scanning workspace/eclipse
> installation files
> - workspace/eclipse on (slow) network drive
> - workspace initially created on a samba-drive was moved to local or
> vice versa (I don't know why/what, but it messed up the unix access
> rights which made eclipse constantly complain about not being able to
> write some files...)
> - wrong vm parameters
> - wrong memory parameters (we use -vmargs -xmX1024m -xmS256m). Can be
> checked in Window>About>Configuration Details
> - too slow machine (that's obviously not the case with your machine)
>
> HTH
>
> Michael
Re: Eclipse is extremely slow [message #213713 is a reply to message #213696] Mon, 04 June 2007 18:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Zachary Turner" <divisortheory@gmail.com> wrote in message
news:f41g7r$bnj$1@build.eclipse.org...
> Thanks for the help, I followed the suggestions and it's much faster now.
> I went ahead and left the Gnu JRE on the machine, but I used the -vm
> switch to point to the Sun JRE.
>
> Even with Sun JRE installed and configured as the system default for
> providing all Java services, Eclipse still opted to use Gnu Java, unless I
> explicitly forced it away from that with the -vm switch. It seems a
> little ridiculous that Eclipse would default to a configuration that
> literally makes it unusable (imagine taking an hour to type 15 lines of
> code, literally). Is this considered a "bug" worthy of reporting?
> Certainly seems like it to me

Eclipse uses the JVM that it finds on the system path. Did you change your
path, or did you just set JAVA_HOME?
Re: Eclipse is extremely slow [message #213721 is a reply to message #213713] Mon, 04 June 2007 18:56 Go to previous messageGo to next message
Zachary Turner is currently offline Zachary TurnerFriend
Messages: 12
Registered: July 2009
Junior Member
I ran

sudo update-alternatives java --config

then selected JRE 1.6.0 as the systemwide default. I'm actually not sure
what that does under the hood, I would have to check whenever I have access
to that machine again sometime later today.

I guess the issue I have is that even with no java installed on the system
at all, when I install Eclipse it automatically downloads and installs the
GCJ version of Java. Why even bother if it makes Eclipse unusable? It
could just do what it should do, and require the JVM from sun in order to
run. When you run the command to show package information about
installed/available packages, it lists required and recommended
dependencies. GCJ is "recommended". Even after posting my original
question, but before receiving any answers, I couldn't imagine how a
configuration setting could make it go from being unusable to normal. It
wouldn't surprise me if a lot of people try out Eclipse, experience this
problem, and then just quit using it and not actually look for a solution.
Which is a shame, because so far I like it now that it runs at a normal
speed.


"Walter Harley" <wharley@bea.com> wrote in message
news:f41meo$hf5$1@build.eclipse.org...
> "Zachary Turner" <divisortheory@gmail.com> wrote in message
> news:f41g7r$bnj$1@build.eclipse.org...
>> Thanks for the help, I followed the suggestions and it's much faster now.
>> I went ahead and left the Gnu JRE on the machine, but I used the -vm
>> switch to point to the Sun JRE.
>>
>> Even with Sun JRE installed and configured as the system default for
>> providing all Java services, Eclipse still opted to use Gnu Java, unless
>> I explicitly forced it away from that with the -vm switch. It seems a
>> little ridiculous that Eclipse would default to a configuration that
>> literally makes it unusable (imagine taking an hour to type 15 lines of
>> code, literally). Is this considered a "bug" worthy of reporting?
>> Certainly seems like it to me
>
> Eclipse uses the JVM that it finds on the system path. Did you change
> your path, or did you just set JAVA_HOME?
>
Re: Eclipse is extremely slow [message #213745 is a reply to message #213721] Mon, 04 June 2007 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.pellaton.li

> sudo update-alternatives java --config
>
> then selected JRE 1.6.0 as the systemwide default. I'm actually not sure
> what that does under the hood, I would have to check whenever I have access

Alternatives are a mean of debian/ubuntu linux distributions to deal
with several implementation of the basically same thing. As an example,
several packages (Gnu, Blackdown1.4, Sun5, Sun6, ...) provide 'java' and
these packages may be installed simultaneously. However, some other
packages depend on the presence of 'java' and therefore it is important
that at least one alternative is installed. In order to provide uniform
path/names of the commands, two level symbolic linking is used:

(generic command)* (linking layer)* (binary to use)*
/usr/bin/java --> /etc/alternatives/java --> /usr/lib/j5sdk/bin/java

The tool 'update-alternatives' helps maintaining the linking layer by
offering a choice of all currently installed alternatives. If you add
your own JRE (e.g. installed in /opt/jdk7-b12), you can add your own
choice using 'update-alternatives' too.

Michael
* = I made up these names
Re: Eclipse is extremely slow [message #213768 is a reply to message #213721] Tue, 05 June 2007 00:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Zachary Turner" <divisortheory@gmail.com> wrote in message
news:f41n81$kgc$1@build.eclipse.org...
> I guess the issue I have is that even with no java installed on the system
> at all, when I install Eclipse it automatically downloads and installs the
> GCJ version of Java.

I think the question is who the "it" is in the above sentence. I wouldn't
assume this is Eclipse per se. I don't know what Ubuntu is like, but in the
non-Linux world, to install Eclipse one simply downloads a zip file and
unpacks it; it does not come with a JVM, nor does it install one. If you go
to the Eclipse downloads page, the Linux installs are just .gz files, same
idea. So I think maybe it is Ubuntu, not Eclipse, that decided you should
get GCJ. I agree it is a bad choice :-)
Re: Eclipse is extremely slow [message #213776 is a reply to message #213721] Tue, 05 June 2007 00:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Zachary Turner wrote:
> I ran
>
> sudo update-alternatives java --config
>
> then selected JRE 1.6.0 as the systemwide default. I'm actually not sure
> what that does under the hood, I would have to check whenever I have access
> to that machine again sometime later today.
>
> I guess the issue I have is that even with no java installed on the system
> at all, when I install Eclipse it automatically downloads and installs the
> GCJ version of Java. Why even bother if it makes Eclipse unusable? It
> could just do what it should do, and require the JVM from sun in order to
> run. When you run the command to show package information about
> installed/available packages, it lists required and recommended
> dependencies. GCJ is "recommended". Even after posting my original
> question, but before receiving any answers, I couldn't imagine how a
> configuration setting could make it go from being unusable to normal. It
> wouldn't surprise me if a lot of people try out Eclipse, experience this
> problem, and then just quit using it and not actually look for a solution.
> Which is a shame, because so far I like it now that it runs at a normal
> speed.

Eclipse does not download or install and JRE - gcj is "standard" on most
linux distributions and was almost certainly on your PATH, which is why
Eclipse used it. When you installed the Sun JRE, it may or may not have
put that on your PATH, and it maybe or not in front of the gcj. You'll
have to check your environment on your shell on the machine to determine.
Eclipse is doing the most sensible thing it can in an environment where
there can be any (or no) JRE on the PATH and installed on the system. If
it finds a JRE on your PATH it assumes that is what you want to use.
What else would it do with a JRE it finds on the PATH?

Please don't blame Eclipse for the stubbornness or ignorance or <insert
reason here> of the linux distros that make it difficult to install the
Sun JRE but ship a sub-standard one instead.

Eric
Re: Eclipse is extremely slow [message #213824 is a reply to message #213768] Tue, 05 June 2007 05:15 Go to previous messageGo to next message
Zachary Turner is currently offline Zachary TurnerFriend
Messages: 12
Registered: July 2009
Junior Member
On Mon, 04 Jun 2007 17:01:16 -0700, Walter Harley wrote:
>
> I think the question is who the "it" is in the above sentence. I wouldn't
> assume this is Eclipse per se. I don't know what Ubuntu is like, but in the
> non-Linux world, to install Eclipse one simply downloads a zip file and
> unpacks it; it does not come with a JVM, nor does it install one. If you go
> to the Eclipse downloads page, the Linux installs are just .gz files, same
> idea. So I think maybe it is Ubuntu, not Eclipse, that decided you should
> get GCJ. I agree it is a bad choice :-)

Fair enough :) But somebody sure forced it on me. When you install a
package in linux (or ubuntu anyway) through the default package manager, it
automatically determines what dependencies you need that aren't already
installed, then installs them. In this case, it said "hey, he doesn't have
java" (even though I had just finished installing and configuring JRE from
Sun), and it installed GCJ for me. So, in essence it forces the bad option
on you unless you force the good option on it.

Oh well, least it works now.
Re: Eclipse is extremely slow [message #213904 is a reply to message #213824] Tue, 05 June 2007 14:11 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Zachary Turner wrote:
> On Mon, 04 Jun 2007 17:01:16 -0700, Walter Harley wrote:
>> I think the question is who the "it" is in the above sentence. I wouldn't
>> assume this is Eclipse per se. I don't know what Ubuntu is like, but in the
>> non-Linux world, to install Eclipse one simply downloads a zip file and
>> unpacks it; it does not come with a JVM, nor does it install one. If you go
>> to the Eclipse downloads page, the Linux installs are just .gz files, same
>> idea. So I think maybe it is Ubuntu, not Eclipse, that decided you should
>> get GCJ. I agree it is a bad choice :-)
>
> Fair enough :) But somebody sure forced it on me. When you install a
> package in linux (or ubuntu anyway) through the default package manager, it
> automatically determines what dependencies you need that aren't already
> installed, then installs them. In this case, it said "hey, he doesn't have
> java" (even though I had just finished installing and configuring JRE from
> Sun), and it installed GCJ for me. So, in essence it forces the bad option
> on you unless you force the good option on it.

Please talk to the Ubuntu people about this. If their packaging is set
up to install gcj when you install an Eclipse package, that is
plain-and-simple wrong. The two are known to be incompatible.
We do tend to see a few Unbuntu-related questions here every week, many
of them because people are using gcj. Perhaps it is because that is what
they get without realizing it. If so, Ubuntu should be urged to fix the
packaging.

Eric
Previous Topic:Using environment variables in launcher ini
Next Topic:Fixes between 3.3RC1 and 3.3RC3?
Goto Forum:
  


Current Time: Sat Apr 27 03:36:49 GMT 2024

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

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

Back to the top