当前位置: 移动技术网 > IT编程>开发语言>PHP > Zend Studio (eclipse)使用速度优化方法

Zend Studio (eclipse)使用速度优化方法

2019年04月23日  | 移动技术网IT编程  | 我要评论
原文标题是优化 myeclipse7.0 速度(尤其是building workspace),都是eclipse设置一样的。

大家一定对buileding workspace时那缓慢的速度给困扰到了吧~

其实只要把project选项里的 building automatically前的勾去掉,就可以快很多了。。

另外大家一定对 myeclipse 的速度经常感到痛苦把,ok,现在开始给 myeclipse 提速:

一、加大jvm的非堆内存
打开 eclipse.ini
-showsplash
com.genuitec.myeclipse.product
–launcher.xxmaxpermsize
256m
-vmargs
-dosgi.requiredjavaversion=1.5
-xms128m
-xmx512m
-dosgi.splashlocation=e:myeclipse 6.0eclipsemyeclipsesplash.bmp
-duser.language=en
-xx:permsize=128m
-xx:maxpermsize=256m
把下面的那个 -xx:maxpermsize 调大,比如 -xx:maxpermsize=512m,再把 -xx:permsize 调成跟 -xx:maxpermsize一样大
几乎每次 eclipse 卡到当都是因为这个 非堆内存 不足造成的,把最大跟最小调成一样是因为不让 myeclipse 频繁的换内存区域大小
注意:xx:maxpermsize 和 xmx 的大小之和不能超过你的电脑内存大小!

我的myeclipse7.0中eclipse.ini里的内容:


---------------------------------------------------------------------
-startup
plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800
-clean
-showsplash
com.genuitec.myeclipse.product
--launcher.xxmaxpermsize
512m //原来是256我改为512 #我机子4gb内存我全改1024m

-vmargs
-xms128m //原来是40我改为128
-xmx512m
--------------------------------------------------------------------------------
二. 去除不需要加载的模块
一 个系统20%的功能往往能够满足80%的需求,myeclipse也不例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止加 载启动。通过windows - preferences打开配置窗口,依次选择左侧的general - startup and shutdown, 这个时候在右侧就显示出了eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。
windows–>perferences–>general–>startup and shutdown
关掉没用的启动项:
怎样才能知道哪些启动项有用呢?我现在把我知道的启动项用处说一下,还有很多不懂的,希望大家懂的回复在下面啊:
wtp :一个跟myeclipse差不多的东西,主要差别是 wtp 是免费的,如果使用myeclipse,这个可以取消
mylyn:组队任务管理工具,类似于 cvs ,以任务为单位管理项目进度,没用到的可以取消
derby:一种保存成 jar 形式的数据库,我没用到,取消
一大排以 myeclipse easie 打头的启动项:myeclipse 支持的服务器,只选自己用的,其他取消,比如我只选了tomcat

三. 取消myeclipse在启动时自动验证项目配置文件
默 认情况下myeclipse在启动的时候会自动验证每个项目的配置文件,这是一个非常耗时的过程,可以在preferences窗口依次选 择 myeclipse - validation,然后在右侧的validator列表中只保留 manual 项就可以了。如果需要验证的时候只需要 选中文件,然后右键选择 myeclipse - run validation就可以了。
windows–>perferences–>myeclipse–>validation
把 除了manual 下面的全部点掉,build下只留 classpath dependency validator
手工验证方法:
在要验证的文件上,单击鼠标右键–>myeclipse–>run validation

四、拼写检查会给我们带来不少的麻烦,我们的方法命名都会是单词的缩写,他也会提示有错,所以最好去掉,没有多大的用处:
windows–>perferences–>general–>validation->editors->text editors->spelling

五、myeclipse 打开 jsp 的默认编辑器不好,会同时打开预览
windows–>perferences–>general–>editors->file associations
把默认改成 myeclipse jsp editor

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网