Several JVM parameters that are commonly used

Source: Internet
Author: User

-xms
The amount of heap memory initially allocated by the JVM, which is 1/64 of physical memory by default.
-xmx
the maximum allocated heap memory size of the JVM, by default, is 1/4 of physical memory.
-xx:permsize
The amount of non-heap memory initially allocated by the JVM is 1/64 of the physical memory by default.
-xx:maxpermsize
The maximum allocated non-heap memory size of the JVM, which is 1/4 of physical memory by default.
-xx:newsize
the initial generation heap area memory size allocated by the JVM.
-xx:maxnewsize
the maximum allocated Cenozoic heap area memory size for the JVM.
-xx:reservedcodecachesize
the size of the cache space when compiling code.

For full JVM parameters, refer to the official documentation:
Http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

In the event of a memory overflow using eclipse, consider adding the following configuration, and the values can be adjusted appropriately.

Eclipse Menu Window->preferences->myeclipse Enterprise workbench->servers->tomcat 6.x->jdk-> Optional Java VM Arguments

-xms256m-xmx512m-xx:maxnewsize=256m-xx:maxpermsize=256m

Eclipse.ini of the Eclipse root directory

C:\Users\admin\AppData\Local\MyEclipse Professional 2014
-vmargs
-xmx768m
-xx:maxpermsize=320m
-xx:reservedcodecachesize=64m

Several JVM parameters that are commonly used

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.