aspose file tools *
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse very slow, any way to speed things up ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse very slow, any way to speed things up ?" Watch "Eclipse very slow, any way to speed things up ?" New topic
Author

Eclipse very slow, any way to speed things up ?

Karan Rajan
Greenhorn

Joined: May 19, 2005
Posts: 12
I have been using Eclipse over the last 4 months and it is agonizing and frustrating experience. Given the size of the project, about 1.5GB, I had expected the performance to be marginally slow. But I was not prepared for the absymally slow experience.Simple things like copying a word, invoking a search and even saving, cause Eclipse to freeze up anywhere from 10 seconds to over 2 mins.

I am running on a Pentium4 with 2GB of RAM. I am using Eclipse 3.1.1 without any plug-in's. I have turned off 'automatic building'. My shortcut to the Eclipse .exe looks as follows :
C:\eclipse\eclipse.exe -nosplash -vmargs -Xms512m -Xmx512m -XX ermSize=128m -XX:MaxPermSize=128m

If someone knows of other ways to speed things up, I would be happy to hear your suggestions.

PS: Those interested in donating to a noble cause K.E.R.F.T.B.I (Karan's Eclipse Relief Fund to Buy IDEA) may also please contact me

Many thanks in advance,
Karan
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Do you have some big jar file in the project's build path? Try the latest Milestone of Eclipse 3.2 - it's already quite stable, and if I remember correctly, it fixes a performance problem with big jar files...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Arun K S
Greenhorn

Joined: Apr 17, 2006
Posts: 1
Hi,

I am Using WSAD5.1.2 i am also facing the same problem is there any way to improve the performance.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31119
    
166

Arun,
The biggest thing is to make sure you have enough memory. You can see in the OS if a lot of paging is going on.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

The other thing to consider is your project size. For Instance, I use IDEA, and I still make smaller modules/project. I will have one project with everything, but I only open it up when I want to move classes across modules and want all the refactoring for it done automatically for me. But otherwise I have seperate projects for each module in my big project. That way, if I am working in one module, I don't have to have the entire application code open.

For instance, at my work we have our client side module, and Module for each service on the server side. If I am working on the Payment services on the server side, I open my Payment project.

This definitely uses up less memory, and speeds things a bit. I have used this approahc for three different IDEs that I have used before.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
I have around a hundred projects open in Eclipse at the same time, all in all around a million lines of code, and it's working just fine. So I'd expect the problem to not be project size...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Originally posted by Ilja Preuss:
I have around a hundred projects open in Eclipse at the same time, all in all around a million lines of code, and it's working just fine. So I'd expect the problem to not be project size...



Really? 100. Wow, I must bow to you. I know when I was at Raytheon, it was huge, and no IDE could have everything open at the same time.

Mark
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Mark Spritzler:

Really? 100. Wow, I must bow to you. I know when I was at Raytheon, it was huge, and no IDE could have everything open at the same time.


I'm not sure why having 100 projects open should be a problem at all. Perhaps it means something different in Eclipse than in the IDEs you are used too...
R Joshi
Greenhorn

Joined: Feb 21, 2006
Posts: 13
I had problem of hundreds of file cluttering in my 'package explorer' and other windows.

Now I heavily use 'Filters' (one of the menu option when down arrow is selected in any widow) to reduce the clutter on the eclipse ide. There is a 'Filter' option in almost all the windows (Navigator,Outline, PackageExplorer etc)

This may not solve your original problem but project may look cleaner javascript: x()
Wink


B&S(2.3.1)<br />There are no stupid questions. Answers maybe
Jaime Garcia
Ranch Hand

Joined: Jan 07, 2003
Posts: 38
I am using eclipse 3.1.1 too and I have the same problem with performance. Whe we started the project, 2 years ago, there were few files and It used to work fine, but now with all the classes and JSP It's really slow. I am using eclipse with WST plugin.
Jaime Garcia
Ranch Hand

Joined: Jan 07, 2003
Posts: 38
I upgrade from eclipse 3.1.1 to 3.1.2 and it seems to work better, and from WTP 1.0 to 1.0.2. I'm not sure if it was the eclipse core or the WTP plugin but works better.
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
My shortcut to the Eclipse .exe looks as follows :
C:\eclipse\eclipse.exe -nosplash -vmargs -Xms512m -Xmx512m -XX ermSize=128m -XX:MaxPermSize=128m


I read from EclipseZone that -vmargs must be the last argument. So maybe in your case, -vmargs is being ignored, hence the absence in performance improvement?


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Ulrich-Xander van Brakel
Greenhorn

Joined: Jul 31, 2006
Posts: 3
I had the same problem on Eclipse 3.2 with the 1.5version of the WTP plugin.
It seems if eclipse tries to connect to the Internet to fetch schema's etc..
and if you use a proxy (In my case) and it is unable to connect it takes about 10 min before "timing out" entering the proxy info vastly improved my performance

ps. it seems to work even if you provide bogus proxy information.


<i>A day without sunshine is like night.</i><br />m(o_O)m
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse very slow, any way to speed things up ?