Eclipse Memory Space JVM settings

Source: Internet
Author: User

The method of adjusting eclipse memory on the internet indicates that the JVM parameters can be set in the Eclipse.ini file. But running the program still found that the memory has not changed, not the set of 1024M, but still 107M (the default program in Eclipse JVM configuration is:-xms8m-xmx128m).

The reason for the error is that the Eclipse runtime needs the JVM itself, which sets Eclipse.ini's JVM parameters. Therefore, the JVM size set in Eclipse.ini is not the size of the JVM used by a particular program to run, regardless of the size of the JVM the program is running on.

1. How can you set the JVM size of a program (and of course the console runs without this problem, such as: java-xms256m-xmx1024m classname, so you can set the JVM size of the current program)?

The Setup method is obvious: Select the class that will run, right-select the Run Configuration ..., select (x) =argument tab, enter-xmx1024m in its VM arguments box, save run OK

http://targenardy.blog.163.com/blog/static/453653252010115102426160/


2. Set Eclipse window----preferebces--->>java---->>installed jres-->>> Select JDK Edit---->> Set VM Size

-xms128m-xmx512m or larger

This article is from the "XML file read and write" blog, so be sure to keep this source http://olymtechjava.blog.51cto.com/8177318/1621953

Eclipse Memory Space JVM settings

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.