myeclipse environment optimization

Right-click on the project to open Project > Properties > BUILDERS, open the source tab, select your directory, delete it ~ restart myeclipse

The following is reproduced from Baidu Know

Optimize, the following content is obtained by CTRL+C, thanks to the original author: 

1. Turn off the automatic validation of MyEclipse
windows > perferences > myeclipse > validation
and uncheck all under Build
If you need to verify a file, we can do it separately to verify it. The method is:
on the file that needs to be verified (right-click -> MyEclipse -> Run Validation .

2. Start optimization, close the modules that do not need to be used,
so you can prohibit some unused modules from loading and starting.
Window > Preferences > General > Startup andy Shutdown lists the modules loaded when MyEclipse starts up.
I only let it load tomcat6 here and check MyEclipse EASIE Tomcat 6.
WTP: a thing similar to myeclipse, the main difference is that WTP is free, if you use myeclipse, this can be Cancel
Mylyn: A team task management tool, similar to CVS, manages project progress in units of tasks, and can be canceled if it is not used
Derby: A database saved in the form of jar, I do not use it, cancel
a large row of MyEclipse EASIE The start-up item at the beginning: the server supported by myeclipse, only choose the one you use, and cancel the others.
For example, I only choose tomcat.

3. Remove the spelling check of MyEclipse (you can skip it if you find it useful). The
spelling check will bring us a lot of trouble. The names of our methods will be the abbreviations of the words, and they will also prompt errors,
so it is best to remove them. , not much use
Window > perferences > General > Editors > Text Editors > Spelling > Uncheck the Enable spell checking checkbox.

4. Modify the editing tool when MyEclipse edits JSP pages.
Window > perferences > General > Editors > File Associations >
Select *.jsp in File types > Set "MyEclipse JSP Editor" as the default in Associated editors.
There is also the default editor for XML files

5. Modify the myeclipse.ini file in the MyEclipse installation directory to increase the non-heap memory of the JVM. The
details are as follows:
-configuration
configuration
-vmargs
-Xms256m
-Xmx512m
-XX:PermSize=128M
-XX:
-XX:ReservedCodeCacheSize=64m

6. Use JRockit as the Java VM
  Eclipse startup parameter of Eclipse, and specify the jre
  "E:\MyEclipse8.0\MyEclipse Blue Edition 8.0 GA\myeclipse-blue.exe" used when eclipse starts -vm E: \JRockit\jrrt-3.1.2-1.6.0\bin\ javaw.exe -vmargs -Xms256m -Xmx512m
  In Eclipse, Window > Preferences, then select Java > Installed JREs to add JRockit and set it as default. In this way, you can use JRockit to compile the project.

7. Turn off automatic updates
  1.window->Perferences->General->Startup and Shutdown tick off Automatic Updates Scheduler 2.window- >
  Perferences->MyEclipse->Maven4MyEclipse tick Enable Maven4MyEclipse featrures; OK to close window; this step is to display the Maven node in step 3.
  3.window->Perferences->MyEclipse->Maven4MyEclipse –>Maven check Download repository index updates on startup

    8. Myeclipse去掉对JS等文件的验证

       在用Myeclipse导入新工程或写代码时,最郁闷的就是它对js,jsp,html的验证太严格了,经常出现一个红叉或者一个黄色的感叹号,网上看了好多方法都不能取消Myeclipse对它们的验证,好长一段时间的没管它,但看着始终是很不舒服。一天无意中看到了解决方法:

      选中当前工程—properties—MyEclipse—validation—Excluded Resource下找到需要取消验证的文件或者文件夹就可以了。

     

 

 9 java.lang.OutOfMemoryError 

  问题解决一:

    在eclipse中,window-->preferences-->Java-->Installed JREs

      选中JRE 点击Edit

    写入这句话:

    -Xms800m -Xmx800m -XX:MaxNewSize=256m -XX:MaxPermSize=256m

    并设置当前使用的tomcat的运行jdk为当前刚刚设置过的jdk即可

  问题解决二:

      java.lang.OutOfMemoryError: Java heap space 解决方法

    这个问题的根源是jvm虚拟机的默认Heap大小是64M,可以通过设置其最大和最小值来实现.设置的方法主要是几个.

    1.可以在windows 更改系统环境变量

    加上JAVA_OPTS=-Xms64m -Xmx512m

    2,如果用的tomcat,在windows下,可以在

    C:\tomcat5.5.9\bin\catalina.bat  中加上:set JAVA_OPTS=-Xms64m -Xmx256m

    位置在: rem Guess CATALINA_HOME if not defined  这行的下面加合适. 

    3.如果是Linux系统

    linux  在{tomcat_home}/bin/catalina.sh的前面,加 set JAVA_OPTS='-Xms64 -Xmx512'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325317773&siteId=291194637
Recommended