Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

General Eclipse Slowness

 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

They are making me run Eclipse on a regular Pentium 4 and the hourglass will go up for minutes at a time if my code contains an error.

Are there any good tricks to make Eclipse not give as much hourglass?

Can I change it's settings so it doesn't look for the cause of errors or anything like that?

I thank you in advance!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot of settings that can be tweaked in the settings.

How much RAM do you have? Are you configured to run with more than the default Java heap/permgen size?
 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 gigabytes of RAM. Eclipse usually uses around 380M.

My eclipse.ini says this:

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, don't know then--if it's not swapping it shouldn't be particularly slow. Maybe try tweaking highlighting and decoration options?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about regular Java code or something else, for example XML?

Eclipse by default tries to validate XML, and sometimes it tries to download DTD or XSD files from Internet to do that, and that can sometimes take a long time.
 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the input.

I'm just writing regular Java code but that is what it takes a long time to validate. I misspell a variable or something and then it gives me the red underline goes hourglass often for more than a minute. I'm thinking if I could turn off some kind of code validation that it does, I could run a lot faster.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try upping the -Xmx value as a sanity check, like to 1024m. I've run Eclipse (3.3, anyway, maybe 3.4) on a P4 w/ not a lot of RAM and never saw behavior like that.
 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It'll let me go up to 768m, but it won't start if I do 1024. I also took a nature added to my .project for some proprietary sdk I'm using. I'll report back if I have any major breakthroughs.

Again, thank you for all you advice.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try turning off automatic compilation, that might help.
 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:

Okay. Since my problem was always caused by Eclipse looking for errors, I did the following and it seems to be helping.

I went Window>Preferences. I followed the side menus Java>Editor>Content Assist. From there I unchecked Enable auto activation, which is near the bottom.

Now it doesn't try to help me find errors unless I click on the red lines. Of course, since it was just giving me an hourglass for minutes and never actually suggesting solutions, this is preferable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic