Eclipse reported memory overflow

Source: Internet
Author: User

(1) Set in the JDK configuration of Tomcat. WINDOW-->PROFERENCE->MYECLIPSE-->SERVERS-->TOMCAT5-->JDK Inside Settings:

-xms500m-xmx1024m-xx:permsize=64m-xx:maxpermsize=256m-xx:reservedcodecachesize=48m <!--StartFragment--

(2) Elipse.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-showsplash Com.genuitec.myeclipse.product-- Launcher. Xxmaxpermsize 512m-clean-vmargs-xms512m-xmx512m-xx:permsize=512m-xx:maxpermsize=512m5. 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, will be the value of these three items to increase, but not bigger the better, Once tested under the same conditions (memory 2GB), the value of-xmx,-xx:maxpermsize 384m is faster than 512m (depending on the specific computer), -xmx,-xx: The value of MaxPermSize is set to the same size and the sum of the two cannot exceed the memory size of your computer itself

------------------------------------------------------------------------------new Eclipse settings:(1) Project name--right-click to set code to UTF-8. (2) window-->proference->general-->content types set inside all the east is UTF-8. Set an Update button to be required once. (3) D:\apache-tomcat-5.5.26\conf\context.xml<context antijarlocking= "true" antiresourcelocking= "true" >(4) D:\apache-tomcat-5.5.26\conf\Catalina\localhost add the project files to be run in this directory:the contents of Aaaa.xml are as follows:<?xml version= "1.0" encoding= "UTF-8"?><context docbase= "D:\workspace\aaaa\WebRoot" path= "/aaaa" reloadable= "false" privileged= "true"/>Here you need to configure the top of the Web-inf directory! ----------------------------------------------------------------------------------Two. Remove modules that do not need to be loadedThe 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 shutdownTurn off the useless startup item: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 thing similar to MyEclipse, the main difference is that the WTP is free, if you use MyEclipse, this can be canceledMylyn: Team task management tools, similar to CVS, manage project progress in a task-based organization, which can be canceledDerby: A database saved as a jar, I didn't use it, I canceled it.A large row of MyEclipse Easie start items: MyEclipse supported servers, only choose their own, other cancellations, such as I only chose Tomcat
Three. Cancel MyEclipse automatically validate project profile at startupBy default, MyEclipse automatically validates each project's profile when it is started, which is a time-consuming process where you can select Myeclipse-validation in the Preferences window and then keep only the validator list on the right The Manual item is ready. 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 to be verified, right-click –>myeclipse– >run validation&NBSP;
Four, spell check will bring us a lot of trouble, our method name will be the abbreviation of the word, he will also prompt the wrong, So it is better to remove, not much use:   windows–>perferences–>general–>validation- >editors->text editors->spelling&NBSP;
v. myeclipse default editor for open JSP not good , the preview   windows–>perferences–>general–>editors->file is open at the same time Associations  change default to MyEclipse JSP Editor ------------------------------------------------------------------------

myeclipse7.1 added ext, every time you modify the JS file, a save will take a long time to stay in validating ... , it's very annoying.

After modifying a file, you can make the page respond to Ext's changes immediately:

Modify the. project file under the project catalog:

Delete The following content:

Java code
    1. <buildCommand>
    2. <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
    3. <arguments>
    4. </arguments>
    5. </buildCommand>
    6. <nature>org.eclipse.wst.jsdt.core.jsNature</nature>

Eclipse reported memory overflow

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.