Learn about garbage collection in java interview questions, we have the largest and most updated garbage collection in java interview questions information on alibabacloud.com
What is the purpose of 1.Java garbage collection? When does garbage collection take place?A: The purpose of garbage collection is to identify and discard objects that are no longer in u
(throughput) collector?The throughput collector uses a parallel version of the new generation garbage collector, which is used for medium-sized and large-scale data applications. The serial collector is sufficient for most small applications, which require about 100M of memory on modern processors.7. In Java, when can objects be garbage collected?This object can
Reprint: http://youli9056.github.io/blog/types-of-java-garbage-collectors/
This article is the third of the Java Garbage Collection series, not original, translated from types of Java garbage
11th questions (garbage collection), garbage collection
1. Runtime class
Each Java application hasRuntimeClass instance, so that the application can be connected to the running environment. You can usegetRuntimeMethod to obtain
machines use the "generational collection" (generational Collection) algorithm, which is divided into several blocks based on the lifetime of the object, generally dividing the Java heap into the new generation and the old age, so that the appropriate collection algorithm can be used according to the characteristics o
Garbage collector
Garbage collector for hotspot virtual machines
There is no provision in the Java Virtual Machine specification for how the garbage collector can be implemented, so different versions of the virtual machine provide a large difference in the garbage
The first thing to say is garbage, what's the name garbage?All is garbage, also first,second, I am not against who, everyone here is rubbish!!!HotSpotWTF, hot pots? What about my grandmother's heat, heat,you know?In short, the hotspot is a Java virtual machine to follow the specification of a realization, it was not su
We all know the Java garbage collection mechanism, Java has its own garbage collector to automatically recycle garbage. I have been aware of the garbage
Reprint: http://youli9056.github.io/blog/java-gc-yuan-li/
This article is not original, translated from the article How Java garbage Collection works? The main purpose of this article is to understand the fundamentals of the Java garbage
1. Mark-Sweep algorithm
The tag-purge (Mark-sweep) algorithm is a basic collection algorithm.
1. Algorithm Ideas
The "Mark-sweep" algorithm is divided into two phases:
(A), tag
first mark all objects that need to be recycled;
marking process as described in "Java Virtual machine garbage c
Java's garbage collection has a variety of strategies, and the default policy is often changed.-for example, serial, parallel, CMS; How about the concrete to Minor, old?
Command java-xx:+printflagsfinal-version, providing help:
BOOL USEPARNEWGC false {product} bool USEPARALLELGC
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.