Set JVM size in Eclipse startup parameters

Source: Internet
Author: User

Eclipse has set the JVM size in the startup parameters, because the Eclipse runtime itself needs the JVM, so 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 in which the program runs.

So how to set the JVM size of a program (of course, the console does not run the problem, such as: java-xms256m-xmx1024m classname, so that the current program's JVM size can be set).

Because the JVM of the default program in Eclipse is configured to:-xms8m-xmx128m, we need to manually adjust our processing memory when it is larger so that there is no memory overflow. The specific setting method is:

Select the class that is being run, click on the menu ' Run->runconfigurations ... ', select (x) =argument The VM Arguments box under the page to enter-xmx512m, save the Run is OK.

I often deal with large floating-point matrices, so I'm using-xmx1024m.


Reference: http://www.chineselinuxuniversity.net/articles/31066.shtml



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.