The original title is to optimize the speed of myeclipse7.0 (especially building workspace), which are all the same eclipse settings.
Everyone must be troubled by the slow speed when building workspace~
In fact, as long as you uncheck building automatically in the project option, it will be much faster. .
In addition, you must often feel pain about the speed of myeclipse, ok, now let’s speed up myeclipse:
1. Increase the non-heap memory of the JVM
Open 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
Put the following one -XX: Increase MaxPermSize, for example -XX:MaxPermSize=512M, and then adjust -XX:PermSize to be as large as -XX:MaxPermSize
Almost every time eclipse gets stuck, it is caused by insufficient non-heap memory. It is the same as the minimum adjustment because it prevents myeclipse from frequently changing the memory area size
Note: The sum of the sizes of XX:MaxPermSize and Xmx cannot exceed the memory size of your computer!
The contents of eclipse.ini in my MyEclipse7.0:
---------------------- -----------------------------------------------
-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
-clean
-showsplash
com.genuitec.myeclipse.product
--launcher.XXMaxPermSize
512m //It was originally 256 and I changed it to 512 #My machine has 4GB memory I changed it all to 1024M
-vmargs
-Xms128m //It turned out to be 40 and I changed it to 128
-Xmx512m
---------------- -------------------------------------------------- ----------------
2. Remove modules that do not need to be loaded
20% of the functions of a system can often meet 80% of the needs, and MyEclipse is no exception. We are Most of the time, only 20% of the system functions are needed, so some unused modules can be disabled from loading and starting. Open the configuration window through Windows - Preferences, and select General - Startup and Shutdown on the left. At this time, the modules loaded when Eclipse starts are displayed on the right. You can remove some modules according to your actual situation.
windows–>perferences–>general–>startup and shutdown
Turn off useless startup items:
How to know which startup items are useful? Now I will talk about the uses of startup items that I know. There are still many things that I don’t understand. I hope everyone can understand the reply below:
WTP: A thing similar to myeclipse. The main difference is that WTP is free. If you use myeclipse, this can be canceled
Mylyn: a team task management tool, similar to CVS, which manages project progress in units of tasks. You can cancel the unused ones
Derby: a database saved in jar form, I don’t have it Used, cancel
A large row of startup items starting with MyEclipse EASIE: For servers supported by myeclipse, only select the ones you use, and cancel others. For example, I only selected tomcat
3. Cancel MyEclipse at startup Automatically validate the project configuration file
By default, MyEclipse will automatically verify the configuration file of each project when it is started. This is a very time-consuming process. You can select MyEclipse - Validation in the Preferences window, and then on the right Just keep only the Manual item in the Validator list. If you need to verify, just select the file, then right-click and select MyEclipse - Run Validation.
windows–>perferences–>myeclipse–>validation
Click off everything except manual, leaving only classpath dependency Validator under build
Manual verification method:
In the file to be verified , right-click the mouse–>myeclipse–>run validation
4. Spell check will bring us a lot of trouble. Our method names will be abbreviations of words, and it will also prompt that there are Wrong, so it’s best to remove it, it’s not of much use:
windows–>perferences–>general–>validation->editors->Text Editors->spelling
5. myeclipse The default editor for opening jsp is not good, it will open the preview at the same time
windows–>perferences–>general–>editors->file associations
Change the default to MyEclipse JSP Editor