In MyEclipse, open windows-> preferences->java->installed jres-> Click on the Jdk->edit->default VM you are using Arguments text box, type:-xms64m-xmx256m
3. If the Web project also reported memory overflow, you may want to set up tomcat memory.
(1) Tomcat installation root directory%tomcat%bin/catalina.bat file, SET java_opts line;
Set java_opts=-xms1024m-xmx1024m-xx:permsize=128m-xx:maxpermsize=256m
The value can be adjusted according to the specific situation of the project and the specific situation of the machine.
(2) MyEclipse Configure the Web server configuration window-preferences-myeclipse-servers-tomcat 5.x-jdk Optional Java VM arguments is configured as:
4, if the debug mode is running, you need to adjust the debug virtual machine parameters, because the debug mode of the default memory allocation is very small.
5, if the eclipse ran the JUnit test encountered a memory problem
Run all of the test cases when the discovery can not run out, to the back of some test cases appear outofmemoryerror, is junit caused, because teardown did not clean up the used memory, can only modify the parameters of the run, the memory is increased.
When Eclipse started JUnit, the value was about 64M, and the result of the memory usage after I increased memory indicates that all test cases require 100M of memory.
Method is:run->run...->junit->alltests-> (x) =ARGUMENTS->VM Arguments:-xmx500m
Notice that the alltests above is the class for the test suite that contains all of the testing cases that you want to modify.
-xmn is a young generation, generally do not exceed the heap size (-XMS and-xmx) half
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.