Solution to heap space overflow in eclipse

Source: Internet
Author: User

Eclipse
The JVM size is set in the startup parameters, because JVM is also required during eclipse runtime, so the JVM size set in eclipse. INI is not a specific one.ProgramUsed during running
The JVM size, which is irrelevant to the JVM size of the specific program running.

So how can we set the JVM size of a program? (of course, this problem does not exist if the console runs, for example, Java-xms256m-xmx1024m.
Classname, so that the JVM size of the current program can be set )?

The default JVM configuration of a program in eclipse is-xms8m.
-Xmx128m, so we need to manually adjust the memory consumption during processing to avoid memory overflow. The specific setting method is as follows:

Select the running class, click 'run-> Run... 'in the menu, and enter in the VM arguments box under the (x) = argument tab.
-Xmx512m: Save and run it.

1:

2:

 

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.