Where the Eclipse JVM startup parameters are set

Source: Internet
Author: User
Learn and reprint from https://jingyan.baidu.com/article/624e7459653ca534e8ba5a26.html

Java is a very popular programming language, Java developers most use eclipse as their own IDE, in the process of code debugging sometimes encounter memory-deficient errors, there is no way to manually specify the startup parameters of the JVM? So today I share with you the "JVM startup parameters where set ", I hope to bring you some help.

① Open Eclipse

② create a class, write a demo code, right-click in the Code Editor, select "Run as" and "Run Configurations"

③ Click on the "(x) =arguments" tab,

Find "VM arguments", enter "-xms128m-xmx512m" and click the "Run" button below to run the program

PS: Parameter meaning description

-xms128m the initial allocated heap memory for the 128m-xmx512m JVM during startup is 512M of the maximum heap memory that is allowed to be allocated during the run of the JVM, on demand the above parameters can be self-sizing according to the actual situation

Long-term modification of JVM startup parameters

①②③④⑤⑥⑦⑧⑨⑩

Where the Eclipse JVM startup parameters are set

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.