前幾天天,莫名其妙的出現一個現象,eclipse工具打開後界面刷新很卡,CPU佔用率很高的問題
導航欄中的展開\收縮都非常卡。
一開始有幾個方面的考慮
1.機器中木馬了,或者殺毒軟件監測的原因
2.本機安裝的JDK出問題了
3.Eclipse版本問題
4.Eclipse插件問題
經過2天的排查和確認,
第1種情況,機器中木馬,經過安全模式下的查殺病毒\木馬,並未發現異常,並且電腦除了eclipse之外,
其它的程序一切正常;另外卸載殺毒軟件後,問題依然存在,排查該故障。
第2種情況,卸載\重新安裝JDK後,問題依然存在
第3種情況,下載3.7,4.2版本後,問題依然存在,排除版本問題
第4種情況,重新更新還原eclipse3.5版本後,問題依然存在。
後來在國外一個論壇中找到了解決問題的方法。
goole中搜索"eclipse when open file refresh UI is slow"
http://www.eclipse.org/forums/index.php/t/367243/
其中的一段纔是導致eclipse很慢很卡的真正元兇。
“Hello guys,
Win7 x64
Work as is shoud
C:\eclipse4\eclipse.exe -datac:\_e4wsjre620 -vm "C:\ProgramFiles\Java\jre1.6.0_20\bin\javaw.exe" -vmargs -Xms1024m -Xmx2048m-XX:MaxPermSize=1024m
damn slow, exactly as described here
And with jre7 something is going wrong with the ftp support(remote system, aptana remote, iam sure other ftp-services also),no connection can etablished.
Maybe this can help to get e4 work till a generally solution isavailable.
adios, Stefan”
不知道以前爲何使用一直使用正常,沒有設置該啓動參數-vm的情況下也可以使用。
不解~
最後還是很感謝google,感謝這問論壇裏的網友,讓我解決了一個頭疼的問題。