• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

General Eclipse Slowness

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try turning off automatic compilation, that might help.
 
Joe Adams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic