---
title: "myecplise优化"
author: "xuxiaoxiao"
date: "2010-06-07T13:38:17Z"
tags: []
categories: ["编程语言"]
slug: "myecplise"
draft: false
lastmod: "2010-06-07T13:38:17Z"
id: 685895
url: "https://cyanbug.iteye.com/blog/685895"
---

1、打开 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 的大小之和不能超过你的电脑内存大小！

 

 2、windows–&gt; perferences–&gt; myeclipse–&gt; validation  
 把 除了manual 下面的全部点掉，build下只留 classpath dependency validator

 手工验证方法：  
 在要验证的文件上，单击鼠标右键–&gt; myeclipse–&gt; run validation

 

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

 

 4、windows–&gt; perferences–&gt; general–&gt; startup and shutdown  
 关掉没用的启动项：

 怎样才能知道哪些启动项有用呢？我现在把我知道的启动项用处说一下，还有很多不懂的，希望大家懂的回复在下面啊：  
 wtp ：一个跟myeclipse差不多的东西，主要差别是 wtp 是免费的，如果使用myeclipse，这个可以取消  
 mylyn：组队任务管理工具，类似于 cvs ，以任务为单位管理项目进度，没用到的可以取消  
 derby：一种保存成 jar 形式的数据库，我没用到，取消  
 一大排以 myeclipse easie 打头的启动项：myeclipse 支持的服务器，只选自己用的，其他取消，比如我只选了tomcat

 

 5、myeclipse 打开 jsp 的默认编辑器不好，会同时打开预览  
 windows–&gt; perferences–&gt; general–&gt; editors-&gt; file associations

 把默认改成 myeclipse jsp editor

 

6、myecplise打开jsp页面报ValidationHelper错  
编辑  
版本：Eclipse 3.3.2 + MyEclipse 6.0.1

错误：  
An internal error occurred during: "Processing Dirty Regions".  
org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Content Validator".  
org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Semantics Validator (JSF)".  
org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

An internal error occurred during: "JSP Syntax Validator".  
org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper

方法一：  
这是由于插件org.eclipse.wst.sse.ui所致，myeclipse中的这个插件是修改过的zmyeclipse版本（在myeclipse安装目录/eclipse/plugins中），但之后自动升级功能下载了更新版本的未修改版插件（在原eclipse的plugin中），所以myeclipse据版本号判断加载了更新的插件。  
但myeclipse的运行依赖修改版本的插件添加的一些功能，可是新的插件未包含这些功能。

如错误中出现的org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper.class，其实在未修改版本中根本不存在这个类，所以出错。  
解决方案：将原eclipse中plugins中的org.eclipse.wst.sse.ui\_1.x.xxxxxxx.jar挪到其他地方。

 

方法二：  
myeclips中，到Help -&gt; Software Updates -&gt; Manage Configuration  
展开后有两项，一项是原有eclipse，一项是myeclipse，展开原有eclipse，  
右键选中Web Standard Tools(WST)xxx那一项，disable，重启myeclipse