Eclipse memory overflow error: Java. Lang. outofmemoryerror:

Source: Internet
Author: User

1. view memory:

Workspace /. metadata /. plugins/org. eclipse. core. runtime /. settings/org. eclipse. UI. prefs, add show_memory_monitor = true to it, and restart eclipse to view the memory usage in the lower left corner.

2. Modify the memory:

Method 1:

Find Eclipse/eclipse. ini, open it, and add

-Vmargs
-Xms128m
-Xmx512m
-XX: permsize = 64 m
-XX: maxpermsize = 128 m

Method 2:

Open eclipse, select window -- preferences -- Java -- installed jres, select the JRE with a check mark on the right, and click Edit. A editjre dialog box is displayed, in the default VM arguments box, enter-xms128m-xmx512m.

In this way, the minimum memory usage of the Java Virtual Machine is 128 MB and the maximum memory usage is 512 MB.


SELF: http://blog.sina.com.cn/s/blog_5bd6b451010197vh.html

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.