1. 程式人生 > >解決eclipse啟動慢

解決eclipse啟動慢

         每次啟動eclipse時都要等待半分鐘左右,對於追求效率的程式設計師來說,等待每一秒都是一種折磨,出於高效開發的精神,這個問題必須解決掉。方案如下:

①在工具欄中的help中找到about eclipse——>installation details

 

計算機生成了可選文字: LL)L1OL〔甘yl)I'I、ul111入LJI'11日‘1lul)LloL',ylllyl、口vvoy.)ovoSearc卜proj掀RunWindowHelp錄。司蕎或裡。日份砂二口口國RubberDuc1pacpubl一WelcomeHelpContentSSearchDynamicHelpKeyAssist…TipsandTrick,…ReportBugorEnhancement…CheatS卜eats…CheckforUpdate、In'tallNew50丘ware…InstallationDdal!sEclipseMarketplace…AboutEclipse甲。{"{口④⑦今Qr卜S卜ift+L…Behavior{0一stuby")二藺冬導粉帥國曰從『11引習口悶―---Jeses}6『I八6gC〕11C乙".上1111奮亡倪J

 

計算機生成了可選文字: 移AboutEclipse一二陣刁、瓦月應EcllpseJavaEEIDEforWebDevelopers.六Version:LunaServiceReleaseZ(4.4.2)Bu;ldid:20150219一0600(c)CopyrightEclip,econtributorsandot卜er,2000.2015.Allright,re,erved.Eclip,eandtheEclip,elogoaretrademarksoftheEclipseFoundation,Inc.,https:刀~.eclipse.org/.TheEclipse1090cannotbealteredwit卜outEclipse'5permission.Eclipse10905areprovidedforuseundertheEclipse1090andtrademarkguidelines,https:刀~.eclipse.org/Iogotm/.oracleandJavaaretrademarksorregi,teredtrademarksoforacleand/oritsa佑l;ates.Ot卜ernamesmaybetrademarksoftheirrespectiveowners·丫奇團國.少備.帶C知mp⑦一nsta"at'onDeta',s臀口份每砂吼O}。K{

 

②在Configruation中檢視是否有-vm,沒有則新增-vm標誌

 

計算機生成了可選文字: 國EclipseInstallationDetailsInsta!ledSOf儷areIn、t。11。ti。。日i、to,「eat。re、plug一澎飛onoguration*****水oate:2015年:。月5日星期一中國標準時間下午2:41:2。PlatforoDetails:***systemp廣operties:application別I=org.eclipse.ui.啪rkbench/LegacyIDE.e4物ia、吐.tO01kit二sun.a樹t.windows.包打。。Ikiteclipse.application=org.eclipse.ui.ide.workbencheclipse.buildld礴.4.2.州201502時一17eeeclipse.co一ands=一05win32一WSwin32一己rChX8664一sh洲splashc:\eclipse安裝\eclipse\\plugins\org.一launcherc:\eciipse安裝、eclipse\eclipse.exe一nameEclipse一launche屍.libraryc:\eclipse安裝\eclipse\\plugins/org.一startupeclipse.platforlll--4.4.2.v201SO2叫一1700\splash.bmpec1ipse.equinox.1auncher.win32.win32.x86_64sel.1.2的.、c:\eclipse安裝\eci一launcher.appendV一productipse\\plugin、/org.eclipse.equinoX.launcher_1.3.O.v2O140415一2的8.jar爪己rgs一州c:\eclip、e安裝\eclipse\jre\bin\serve。\j,.dlle。iipse.home.10。。tion=file:/c:/eclipse安裝/eciipse/屍J~口·。一eclipse.launcher.name=Eclipseeclipse.pZ.data.area=@config.dir/二/pZ/eclipse.pZ.profile=epp.package.jeeecliPse.Product=org.ec1iPse.ePP.Package.jee.Producteclipse.startTime,1444627109480…《_,日川川日日日日日日日日口「日日日日日日日日日日日ViewErrorLogCopytoClipboard口峨月.

 

③在安裝目錄下找到eclipse.ini檔案,修改堆記憶體

 

我的電腦記憶體為

8G,設定如下:

-vmargs

-Xms1024m

-Xmx2048m

-XX:PermSize=64M

-XX:MaxPermSize=1024M

 

1G記憶體推薦為:

-vmargs

-Xms128M

-Xmx512M

-XX:PermSize=64M

-XX:MaxPermSize=128M

 

2G記憶體推薦為:

-vmargs

-Xms128M

-Xmx768M

-XX:PermSize=64M

-XX:MaxPermSize=512M

 

④在工具欄window中找到preferences,

修改啟動項

 

計算機生成了可選文字: l弓earc卜projectRunWindowJavaEE一strategy/src/com/xufengzhu/strateg、Help盡.司蕎兮矛。.',口口一國侖甲幽吟鹹tegyementsFlv:atedmethod(,,1can,tfl.....口口口口口口口口口日r……八毽d.王j上lNevvWindowEditorHideToo!baropenperspectiveShowVieWCu,tomizeperspe改ive…SaveperspectiveAs…Resetperspective…CloseperspectiveC10,eAllper;pertive,Navlgation西AndroidSDKManager日AndroidVirtualDeviceManagerWebBrowserpreferences

 

計算機生成了可選文字: 國PreferenCeS'General六APPe日ranceCapabilitiesCompare/patchContentTypeSEditorsGlobalizationKeysNe七刀orkConnedi.per,pectivesSearch卜SecurifyServicepolicies…startupandshutdTracingWebBrowserWork,pace·AndroidAntDataManagementStartuPandShutdown口Refreshworkspaceon、tartup口Con們rmexitwhenclosinglastwindow二寶州pIug一in,activatedonstartup:MarketplaceClientEquinoxprovisioningpla任ormAutomaticUpdateSupportWTpWeb、erviceUlplug一inJAX一WSUtilsmZeMarketplaceMylynTasksUlMylynTeamUlRSEUlAndroidDevelopmentToolkit恆舊舊舊舊唱謂侶胃―口口口口口【曰日日日日日―-Rest。reDefa。畝諭…一oKCancel口困月.

 

             這些操作完成之後,eclipse10秒便啟動了,快來試試吧!