How can you speed up Eclipse?

后端 未结 30 2204
甜味超标
甜味超标 2020-11-22 06:04

How can you make the experience with Eclipse faster?

For instance: I disable all the plugins I don\'t need (Mylyn, Subclipse, …).<

相关标签:
30条回答
  • 2020-11-22 06:59

    Try these. There are two ways.

    First Procedure

    Refer this article.

    http://www.javacodegeeks.com/2014/06/the-real-way-to-make-eclipse-run-faster-on-ubuntu.html

    Second Procedure.

    Execute the command in the terminal.

    ramdisk
    

    to get better performance and fast response for Ubuntu.

    Ramdisk is part of system memory. Ubuntu by default uses a half of physical memory (RAM) as ramdisk, and it is mounted onto

    /dev/shm

    , it can be used just like normal disk space (create files and folders and manipulate them with better performance rather if they were stored on the hard disk). If ramdisk uses more than a half of RAM, data will be moved into the swap space. If ramdisk uses less, the remaining can still do what RAM’s doing.

    Set upper limit of ramdisk

    As is said above, ramdisk by default can use a half of RAM. If you want to change the upper limit, follow the steps below:

    1. Edit /etc/fstab by your favourate editor:

      gksudo gedit /etc/fstab

    2. Find this line and change to make it looks like this(add this line if not exist, and change 512M to what you like.):

      tmpfs /dev/shm tmpfs defaults,size=512M 0 0

    3. Reboot or re-mount

      /dev/shm

    Mount /tmp onto ramdisk

    To make it easy to use, you can mount a directory into

    /dev/shm
    

    by following commands:

    mkdir /dev/shm/tmp

    chmod 1777 /dev/shm/tmp

    mount --bind /dev/shm/tmp /tmp

    0 讨论(0)
  • 2020-11-22 07:00

    There is another thing that really speeds up Eclipse on both Windows and especially Linux - putting the JVM in RAM disk.

    For Windows you can use the commercial RAM disk driver from Qsoft.

    For Linux use any of the methods described in numerous articles on the Internet. It is important to give additional space to the RAM disk that is 10% bigger than the size of the JVM.

    Check it out. It really makes a difference.

    0 讨论(0)
  • 2020-11-22 07:00

    Try this too, it will improve the performance:

    cleaning up indexes - {workspace path}.metadata.plugins\org.eclipse.jdt.core cleaning up history - {workspace path}.metadata.plugins\org.eclipse.core.resources.history

    Cleaning the above folders will not impact the project files.

    0 讨论(0)
  • 2020-11-22 07:02

    Well, if you are developing a GWT application using Eclipse, then this is the way:

    Out of memory error in Eclipse

    Also remember to add the same VM arguments to the hosted mode configuration.

    0 讨论(0)
  • 2020-11-22 07:04

    Make sure that you're using the Sun JVM to run Eclipse.

    On Linux, particularly Ubuntu, Eclipse is installed by default to use the open source GCJ, which has drastically poorer performance. Use update-alternatives --config java to switch to the Sun JVM to greatly improve UI snappiness in Eclipse.

    0 讨论(0)
  • 2020-11-22 07:04

    I implemented a plug-in to configure which features to be loaded in runtime to improve the performance and reduce the conflict among different plug-ins.

    You may have installed many features into your Eclipse, such as Android development tools, C/C++ development tools, PHP, SVN, Git and ClearCase plug-ins. Hence Eclipse is heavy and costs a lot of memory, and some of them are not often used.

    So you could use my tool to create different runtime policies, such as one that has Android, Git and base Eclipse, another one contains C/C++, SVN and base Eclipse. Next time Eclipse would only load the specified features if you're using the policy that only has Android and Git.

    You are welcome to try it and give me the feedback. :)

    The name of that tool is Equinox Advanced Configurator.

    0 讨论(0)
提交回复
热议问题