Change the memory space used by jdk.

Source: Internet
Author: User

Change the memory space used by jdk.

When working on a project, sometimes the memory jvm memory is insufficient, which is set in myeclipse.

-Xms128m

-Xmx512m

-XX: PermSize = 128 m

-XX: MaxPermSize = 128 m





How to change java execution memory

1. Open the eclipse configuration file eclipse. ini and change-Xmx (the value represents the maximum memory size that jvm can use)

2. when running the java program, select run> run configuration> arguments and enter-Xms100M-Xmx800M (-Xms indicates the memory size allocated during jvm startup, -Xmx indicates the maximum amount of memory that can be allocated ).
3. If you want to modify the memory of the web server, you can use window> preference> myeclipse> servers> Server Name> server name + version> jdk to modify the memory. Example:-Xms512m-Xmx1024m-XX: PermSize = 256 m

After jdk is installed, does it occupy both hard disk space and memory?

No. When you do not use it, it will not occupy the memory...

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.