Eclipse Dayton, Memory explosion solution

Source: Internet
Author: User

This article is reproduced from http://rsy.iteye.com/blog/2095668/

PS: After all the checksum is removed, for the following version, the memory has been soaring, the solution refers to the blog: modify the project's. project file, hereby note the record.

Version:indigo Service Release 2
Build id:20120216-1857

Reproduced in the original text as follows

When using Eclipse to edit JSP, JS file, often appear stuck, Baidu on the internet n times, after the optimization adjustment of n times, card death gradually improved, the specific method played a role, not very good. List all the used methods as follows:

1. Cancel Verification

Windows–>perferences–>validation

Drop all except the manual below, build only leave classpath dependency Validator

2. Turn off spell checking

Windows–>perferences–>general–> Editors->text editors->spelling

3. For MyEclipse, editing tools when modifying JSP pages

Window > Perferences > General > Editors > File associations >

In file types, select *.jsp > Set myeclipse jsp Editor to default in associated editors.

4, eliminate the JAR packet access network

Using smart hints when editing JSPs with Eclipse or myeclipse may cause the IDE to die.

This is because the eclipse prompts you to access the network based on the Javadoc location specified by the jar package.

Workaround: window-->preferences-->java-->installed JREs, edit the JRE used, put Rt.jar and Charsets.jar Javadoc Location is set to null (none). Of course, you can also download Javadoc to this machine, the relevant settings can also be resolved.

Also: All the jar packages used in your project are treated the same.

5. Modify shortcut keys for open links

Recently, when editing code in MyEclipse, use shortcut keys to copy and paste, often cause the editor briefly pause, the cursor does not follow, incredibly response, almost suspended animation.

Want to think about what should be the editor on the configuration or what the IDE's function, so into the preferences to find the edit function, a test, and finally found that the original code of the super-chain function caused.

Access method: Text Editors, Editors, Preferences, General, Windows------hyperlinking

Change the hyperlink shortcut to another key such as ALT (cannot change to shift)

Description: In eclipse, you can often use CTRL + mouse click to direct the editing interface to related methods, properties, or classes.

This function is very useful, but because the copy and paste of the function shortcut key is also CTRL, so I in the fast operation, eclipse response, unable to analyze my operation, now only need to change one of the other shortcut

Original page address: HTTP://LIYANBLOG.CN/ARTICLES/2013/03/28/1364464592117.HTML#6555527-YOUDAO-1-342-6BF3F08145FCAE5F9805082906CBBF15

6. Modify the project's. Project file

The default JS editor in Eclipse is very slow, especially when copying and pasting code

Using the official website of the standard version of the eclipse3.9 for Java EE does not install any plug-in, write JS when the card is simply unbearable, try to remove all the validate, including menu and item properties are not in effect, later in the project root directory: Project found the following red Line incredibly validator are still in, the red corresponding to the configuration section all deleted, the problem solved, edit JS no longer like a snail.

<buildSpec>

<buildCommand>

<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

<triggers>full,incremental,</triggers>

<arguments>

<dictionary>

<key>LaunchConfigHandle</key>

<value>&lt;project&gt;/.externaltoolbuilders/ Org.eclipse.wst.jsdt.core.javascriptvalidator.launch</value>

</dictionary>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.jdt.core.javabuilder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.wst.common.project.facet.core.builder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

<triggers>full,incremental,</triggers>

<arguments>

<dictionary>

<key>LaunchConfigHandle</key>

<value>&lt;project&gt;/.externaltoolbuilders/ Org.eclipse.wst.validation.validationbuilder.launch</value>

</dictionary>

</arguments>

</buildCommand>

</buildSpec>

<natures>

<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

<nature>org.eclipse.wst.common.project.facet.core.nature</nature>

<nature>org.eclipse.jdt.core.javanature</nature>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

</natures>

Original link: http://blog.csdn.net/bell2008/article/details/8758290

7. Adjustment Eclipse Run memory .

Edit the Eclipse.ini file with EditPlus in the installation directory of Eclipse and change the parameters to:

-vmargs

-dosgi.requiredjavaversion=1.6

-xms512m

-xmx512m

-xx:permsize=256m

-xx:maxpermsize=256m

-xx:-usegcoverheadlimit

Eclipse Dayton, Memory explosion solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.