Understanding Java Virtual Machines-non-heap related parameter settings (4)

Source: Internet
Author: User
Non-heap memory-related configuration-xx:permsize

Initial size of the permanent zone

-xx:maxpermsize

Maximum size of the permanent zone use-xx:mxmetaspacesize to configure the maximum size of the JDK1.8 in the

-xss

Thread stack size

-xx:maxdirectmemorysize

The direct memory size, which defaults to the maximum heap space, which is-xmx. When the direct memory usage reaches-xx:maxdirectmemorysize, garbage collection is triggered, and if garbage collection does not effectively free up space, a direct memory overflow will still cause the system to oom. In general, direct memory reads and writes faster than heap memory, but requests are slower than heap memory. Direct memory is suitable for scenarios where the number of applications is low and read and write frequently.

Working mode of the JVM

Server mode is slower to start than client mode because the server mode tries to collect more system performance information and optimizes the program with more sophisticated optimization algorithms. Therefore, when the system is fully up and running stable, the server mode executes much faster than the client mode.

-client-server

Understanding Java Virtual Machines-non-heap related parameter settings (4)

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.