Solve the MyEclipse eating memory and the method of card death

Source: Internet
Author: User
Tags win32

Preface: MyEclipse5.5 size 139m;myeclipse6.5 size 451m;myeclipse7.0 size 649m! Download server is also foreign ... Download speed is tiring, as long as you work first-class performance. Unfortunately, MyEclipse belongs to the master of eating memory, especially MyEclipse7.0 run up, basically do not have to do other work, it is a quick update, a will updating indexes, you resistance to the temperament and so on it update finish, The old man began to validation automatically!

Really unbearable, the author collected some about the solution MyEclipse memory consumption method, after I test very effective, shared out, hope can be more convenient for friends.

1 always pop up quick update error, turn off MyEclipse's quick update Automatic Updates feature

The solution to this problem is to turn off automatic Updates

Windows > Preferences > MyEclipse Enterprise Workbench > Community Essentials, put the option "Search for new features on St Artup "The front hook can be removed.

2 Close Updating indexes

Window > Preferences > MyEclipse Enterprise Workbench > Maven4myeclipse > maven> disable Download repository Inde x updates on startup.

3 Turn off automatic validation of MyEclipse

Validation have a bunch of, what XML, JSP, JSF, JS and so on, we do not have to go to the automatic check, just need to check the manual, the speed of the upgrade several grades immediately

Windows > Perferences > MyEclipse > Validation Remove all of the build

If you need to verify a file, we can verify it individually. The method is on the file that needs to be validated (right-click MyEclipse, Run Validation.

4 start optimization, close modules that you do not need to use

The function of a system 20% is often able to meet 80% of the requirements, MyEclipse is no exception, we only need 20% of the system function most of the time, so we can disable the loading of some unused modules to start.

Window > Preferences > General > Startup Andy Shutdown is listed here MyEclipse the module loaded at startup I just let it load tomcat5 tick myeclipse EASI E Tomcat 5.

How do you know which startup items are useful? I now know the use of the start-up to say, there are many do not understand, I hope you understand the reply in the following AH: WTP: A similar thing with MyEclipse, the main difference is that WTP is free, if you use MyEclipse, this can be canceled Mylyn: Team task management tools, Similar to CVS, managing project progress in a task-based way, useless to cancel Derby: a database saved as a jar, I'm useless, cancel a large row of MyEclipse Easie start items: MyEclipse supported servers, only choose their own, other cancellation, For example, I only chose Tomcat.

5 Remove MyEclipse Spell check (if you feel useful you can not go)

Spell check will bring us a lot of trouble, our method of naming will be the abbreviation of the word, he will prompt the wrong, so it is best to remove, not much use

Window > Perferences > General > Editors > Text Editors > Spelling > The Enable spell checking check box is removed.

6 Remove MyEclipse Miscellaneous Auto Add-ins

Window > Perferences > General > Startup and Shutdown > select the check box in the Plug-ins activated on Startup to remove the selected tick.

7 editing tools to edit myeclipse when editing JSP pages

Window > Perferences > General > Editors > File Associations > Select *.jsp > Associated edito in File types The MyEclipse JSP Editor is set to the default in Rs.

8 Setting shortcut keys

After setting the search for other features using the alt+/shortcut key, if found, delete it or it will conflict with the shortcut key

9 Modify the Eclipse.ini file of the MyEclipse installation directory to increase the non-heap memory of the JVM

The specific contents are as follows:-clean-showsplash com.genuitec.myeclipse.product.ide--launcher. Xxmaxpermsize 256m-vmargs-xms128m-xmx512m-duser.language=en-xx:permsize=128m-xx:maxpermsize=256m

Ten MyEclipse start the card dead problem

today accidentally put myeclipse below a workspace removed, and then start myeclipse appear stuck, myeclipse can normally start, but when the MyEclipse click, MyEclipse immediately stuck, become unresponsive.

This problem occurs because there is a myeclipse-8.6\configuration\.settings \ in the MyEclipse installation directory Org.eclipse.ui.ide.prefs file, this file has a configuration item (recent_workspaces) that is used to configure all the workspaces. Because our workspace has been deleted, but the configuration file still exists, so there is no end to loading, a little bit unresponsive problem

Workaround:

In the configuration file, delete the workspace that is not in place. I hope you can help you. I wish the programmers a pleasant work.

Put the following-xx:maxpermsize, such as-xx:maxpermsize=512m, and then make-xx:permsize as big as-xx:maxpermsize

1. Remove modules that do not need to be loaded

The function of a system 20% is often able to meet 80% of the requirements, MyEclipse is no exception, we only need 20% of the system function most of the time, so we can disable the loading of some unused modules to start. Open the Configuration window via Windows-preferences, then select the General-startup and Shutdown on the left, this time on the right shows the module that was loaded at eclipse startup, and can remove some modules according to your actual situation. Windows–>perferences–>general–>startup and shutdown

Turn off the useless startup item:

WTP: A thing similar to MyEclipse, the main difference is that WTP is free, if you use MyEclipse, this can be canceled Mylyn: Team task management tool, similar to CVS, task-based management project progress, useless can cancel Derby: a Jar in the form of a database, I do not have to cancel a large row to MyEclipse Easie start entry: MyEclipse supported server, only choose their own, other cancellations, such as I only selected tomcat6.x

2. Cancel MyEclipse automatically verify the project configuration file at startup

By default, MyEclipse automatically validates each project's profile at startup, which is a time-consuming process that can be selected MyEclipse Enterprise workbench-validation in the Preferences window, You can then just keep the Manual item in the validator list on the right (Manual all, bulid items leave only the first item). If you need to verify the time only need to select the file, and then right-click on the Myeclipse-run validation.

Windows–>perferences–>myeclipse–>validation except manual below all points off, build under only left Classpath dependency Validator

Manual Verification Method:

On the file that you want to verify, right-click –>myeclipse–>run validation

3, remove the spell check (if you feel useful can not go)

Spell check will bring us a lot of trouble, our method of naming will be the abbreviation of the word, he will also suggest mistakes, so it is best to remove, not much use: windows–>perferences–>general–>validation-> Editors->text editors->spelling

MyEclipse Open JSP Default editor is not good, will open the preview Windows–>perferences–>general–>editors->file associations at the same time,

Change the default to MyEclipse JSP editor () the original default JSP editors are myeclipse visual JSP Designer, as the name implies, this compiler is a JSP visual editor, for beginners have a lot of help, However, modifying the default editor for this item can actually increase the startup speed)

4. Turn off Automatic Updates

If it is myeclipse7.5:

(1) Turn off MAVEN auto Update:

Window-preferences-myeclipse Enterprise workbench-maven4myeclipse-maven, close all download and update options, total four items (remove the previous tick)

(2) Close update schedule:window–> preferences–> general–> Startup and shutdown–> Automatic updates Scheduler (remove the previous tick)

(3) window–> preferences–>myeclipse Dashboard, close Show......on start

5. Increase the non-heap memory of the JVM

Open Myeclipse.ini-startup. /common\plugins\org.eclipse.equinox.launcher_1.0.101.r34x_v20081125.jar--launcher.library. /common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.r34x_v20080731-clean-configuration CONFIGURATION-VM C:\Users\lenovo\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\ bin\client\jvm.dll-vmargs-xmx384m-xx:maxpermsize=384m-xx:reservedcodecachesize=96m

The above is my myeclipse.ini, need to modify is-xmx,-xx:maxpermsize,-xx:reservedcodecachesize, the value of the three items, but not the bigger the better, have been tested under the same conditions (memory 2GB), The value of-xmx,-xx:maxpermsize is 384m faster than 512m (depending on the specific computer), the value of-xmx,-xx:maxpermsize is set to the same size and the sum of the two cannot exceed the memory size of your computer itself.

6, Window-preferences-myeclipse Enterprise Workbench-maven4myeclipse-maven, the Maven JDK to the computer installed JDK, That is, do not use the MyEclipse enhanced JDK Registration Add button, select the JDK on your computer (note: Not the JRE, my value is: Java6.014)

7, Window-preferences-myeclipse Enterprise workbench-matisse4myeclipse/swing, will design-time information (Dt.jar) Location switch to the Dt.jar of the computer-installed JDK (i.e. not using the Dt.jar provided by MyEclipse, my value is: C:\Java6.014\lib\dt.jar)

This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/defonds/archive/2009/07/10/4338782.aspx

    • Size: 26.6 KB

Solution to MyEclipse eat memory and Card dead method (Turn)

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.