Are you feeling your eclipse is slow ? And, is it taking lot of time to open your eclipse ?
Based upon my experience I have put down some points that would help you out.
1. Try to open your eclipse in clean mode.
Command: > eclipse –clean
What is does ?
Cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches.
2. Configuring suitable heap memory size in eclipse.ini file. Verify max heap size parameter (Xmx) and configure based on the application need.
This is where your java objects will be stored.
3. Make sure to configure sufficient permgen size in eclipse.ini file. Configure based on the your application need.
This is where you classes and method definitions will be loaded after starting your application
4. Close unnecessary projects in your workspace.
Example: You might have 10 plug-ins in your eclipse current workspace, but you might be using or working on only 2 plug-ins, and that work independent of other plug-ins.
5. Try to avoid force closing eclipse. It takes lot of time to initialize the previous state of eclipse based on the history indexes.
6. Don't enable all third-party code enforcement tools by default.
- Find bugs - run based upon need.
- Google code analytics
- Check style
7. You can remove Project build automatically option in eclipse and enable only based on the need.
8. Remove automatic updates for eclipse plug-ins and third party plug-ins.
You can find “Automatically find new updates and notify me” option in your eclipse.
8. Once in a while try to switch all your plug-ins/projects in to new workspace and work.
As a programmer:
- Don't keep so much of code in your Activator start() methods
- Minimize the number of classes in the each plug-in
- Don't run too many background processes in your application.
- Don't create too many threads at a time. Make sure no.of threads should be less than or equal to number of processor cores in the system.