五步优化你的eclipse(国外达人总结的)
来源:互联网 发布:电机正反转编程 编辑:程序博客网 时间:2024/05/20 05:26
用eclipse一直很卡,启动也特别慢。在网上搜了很多方法,没有什么效果,于是去谷歌搜国外的解决方法。搜到试了以后速度明显得到了优化。
文章具体如下:
Follow these steps to speed up your eclipse as a super fast IDE , it works for 32 & 64 bit version eclipse/jdk on my windows 7 x64.
1.Disable antivirus software, or add your jdk & eclipse & workspace & other related folder to white list in your antivirus software.
2.Disable unecessary validations and startup action in eclipse reference.
For validations: on eclipse menu Windows -> Preferences -> Validation, click “Disable All”, and then select the validator which you need. I selected “Classpath Dependency Validator” only.
For startup action: on eclipse menu Windows -> Preferences, type “startup”, select “Startup and Shutdown”, untick the options you don’t need. (Thanks for David’s suggest, I’ve added the above 2 detail steps for readers)
3.Modify eclipse.ini to set the Xmn(new generation size), Xms and Xmx, enable parallel GC
-vm
C:/jdk1.6.0_25/bin
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
–launcher.defaultAction
openFile
–launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
–launcher.defaultAction
openFile
-vmargs
-server
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC
4.Create a ram disk(virtual disk) on memory, and put your jdk on the ram disk.
You can use imdisk to create ram disk. Firstly download it from: http://www.ltr-data.se/opencode.html/#ImDisk, and install it.
Then set the ImDisk driver to auto-load at Command Prompt with administrative privileges (for example right-click, start as Administrator), type:
sc config imdisk start= auto
net start imdisk
create a 200m ram disk as driver n by:
imdisk -a -t vm -s 300m -m n:
then you should format the ram disk manually.
later ,if you would like to remove the ram disk, just run the command:
imdisk -D -m n:
5.Make sure you are using sun jdk, not open jdk/gcj nor other jdk on linux.
If you are not satified with the after the above steps, install jrockit instead of sun jdk, and change some of the vm options by jrocket specification,
jrockit is faster than sun jdk.
Some note:
On my laptop(Aspire 4745G 4G mem ), windows 7 x64, by default, it takes more than 30 seconds to start eclipse. After the vm options tuned, takes only 15 seconds.
And after jdk moved to ram disk, it takes 10 seconds to startup.
转载地址:http://www.beyondlinux.com/2011/06/25/speed-up-your-eclipse-as-a-super-fast-ide/
- 五步优化你的eclipse(国外达人总结的)
- 五步整理你的css文件
- 六步优化你的 Ubuntu 14.04
- 5步加速你的eclipse启动
- 国外的优化Pdf
- 简单七步最大限度优化你的博客文章
- 轻松34步使你的 SQL 语句完全优化
- AJAX总结之XMLHttpRequest对象的五步使用法
- Ajax的五步使用
- 柯南君:教你如何对待大型网站平台的性能优化? 之 五---web 前端性能优化策略(长篇总结)
- 第三步:AndroidStudio的优化
- 简单几步优化你的windows,加快开机速度(重装windows之后要做的几件事)
- eclipse 的单步调试
- Eclipse的单步调试
- Eclipse 的单步调试
- Eclipse 的单步调试
- Eclipse的单步调试
- Eclipse的单步调试
- Tencent vs. Sina
- [转]A*寻路初探
- 关于extjs大量数据导入方案研究
- 《C++代码设计与重用》读后感
- 又到抗日示威游行时!
- 五步优化你的eclipse(国外达人总结的)
- 中文ubuntu里用户目录里的路径改成英文
- U盘启动WinPE安装Windows Server 2008(32位)
- android 布局中的layout_weight的作用
- 【设计教程】photoshop自由变形工具,透视工具的使用!
- 计算机本科开设课程示意图---解答目前大学开设这些课程的原因
- 【Linux】ubuntu下词典软件Goldendict介绍(可屏幕取词)和StarDict(星际译王)的安装
- 交换两个数组使两个数组和的差最小
- 致黑马后来者——你有多了解自己