Eclipse getting too slow - workspace recreation helped

后端 未结 7 1421
你的背包
你的背包 2021-02-04 01:50

My Eclipse was getting slower and slower over time. Tips I found on the Internet did not help. What I did is completely deleted my workspace, created new one and reimported all

相关标签:
7条回答
  • 2021-02-04 02:29

    I just solve the problem by deleting all stuffs inside eclipse's directory OPTReplica. after that, re-stat eclipse, for me it helps.

    0 讨论(0)
  • 2021-02-04 02:30

    Sometimes due to Physical Memory issue it cant build the workspace. So To remove Memory issues update @

    eclipse.ini

    file as below

    -Xms512m
    -Xmx1024m
    -XX:MaxPermSize=1024m
    --launcher.XXMaxPermSize 1024m
    
    0 讨论(0)
  • 2021-02-04 02:31

    I use RAD 7.5 (which is based off of Eclipse 3.4). I found several of my projects had millions of history files, all older than 7 days, and mostly the same dummy MANIFEST.MF file (39 bytes).

    I discovered this when I tried to delete an old project with Windows Explorer. After 12 hours, Windows Explorer reported that it had recycled 3.5 million files, and was still working.

    I found the only way to remove the workspace was to open a Command Window, CD to

    <project>\.metadata\.plugins\org.eclipse.core.resources\.history
    

    then type

    DEL *.* /s/q
    

    Even this took the better part of an hour.

    0 讨论(0)
  • 2021-02-04 02:35

    Try running eclipse from command prompt with

    eclipse.exe -clean
    

    More http://www.myeclipseide.com/PNphpBB2-viewtopic-t-10280.html

    0 讨论(0)
  • 2021-02-04 02:36

    Eclipse keeps track of all changes in local history. That might introduce slowdown over time. Local history is located at .metadata/.plugins/org.eclipse.core.resources/.history.

    0 讨论(0)
  • 2021-02-04 02:37

    Eclipse is programmed as a filebomb, and it causes a large variety of problem, evben on modern robust filesystem. Problem can goes from large waste of diskspace for nothing to preventing your OS to boot if your workspace is on your OS partition. Eclipse is programmed as a filebomb.

    The cleanup mechanism in eclipse doesn't work, so the only viable option is to frequently cleanup your workspace by hand at regular interval, or to add your cleanup code to a sh file that does it before launching eclipse.

    An other option will be to introduce the eclipse developpers to the fabulous world of databases that produce faster to run and easier to write code. Sadly a rhumor says that they will shot on sight everyone that pronounce the words "sqlite" or "jdbc", and will sacrifice virgind every sunday to the all-mighty-god-of-filebombs.

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