Java 8: From Permanent generation (PermGen) to Meta Space (metaspace)

Source: Internet
Author: User

Noun concept:

Meta-space: Metaspace
1, most of the class metadata is allocated in local memory.

2, by default, the class metadata is limited only by the available local memory (the capacity depends on the available virtual memory size of the 32/64-bit operating system).

3, the new parameter (maxmetaspacesize) is used to limit the size of local memory allocated to the class metadata. If this parameter is not specified, the meta-space is dynamically adjusted as needed at run time.

4, garbage collection for zombie classes and ClassLoader will take place when the metadata is used to reach the set value of the "maxmetaspacesize" parameter.

5, timely monitoring and adjustment of the meta-space is necessary to reduce the frequency of garbage collection and reduce delay. Persistent meta-space garbage collection instructions may exist for classes, memory leaks caused by class loaders, or inappropriate size settings.

Permanent generation: PermGen
1, this part of the memory space will be removed.
2, the parameters of the JVM:permsize and maxpermsize are ignored and a warning is given (if both parameters are set when enabled).

Meta-space Features:
1, each loader has dedicated storage space.
2, a class is not recycled separately.
3, the position of the object in the meta-space is fixed.
4, if it is found that an loader is no longer in stock, the relevant space will be collected throughout.

Java 8: From Permanent generation (PermGen) to Meta Space (metaspace)

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.