Java Recovery algorithm

Source: Internet
Author: User
Two most basic Java recycling algorithms: Copy algorithm and tag cleanup algorithm replication algorithm: Two regions A and B, the initial object in a, the object that continues to survive is transferred to B. This is the new generation of the most commonly used algorithm tag cleanup: An area, mark the object to be recycled, and then recycled, must be fragmented, then the lead-out tag-collation algorithm: More defragmentation, the larger memory put larger objects two concepts: The Cenozoic and the old generation: the initial object, A permanent generation with short life cycles: long-existing objects The entire Java garbage collection is a collaboration between the new generation and older generations, which is called generational recycling. P.s:serial new Collector is for the generation of collectors, the use of the replication algorithm parallel New (parallel) collector, the Cenozoic use of replication algorithm, the old age using the tag collation parallel scavenge (parallel) collector, for the Cenozoic, Using the replication collection algorithm serial old (serial) collector, the new generation uses the replication, the older era uses the marking to organize the parallel (parallel) collector, according to the old age, marks organizes the CMS collector, based on the mark cleans up the G1 collector: The whole is based on the labeling collation, the partial adoption copy

Java Recovery algorithm

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.