- What is a JVM? What does it do?
- What are the root nodes in the reachability analysis algorithm?
- What is GC? Why should there be GC? How do I tune GC?
- How to troubleshoot high CPU and memory?
- Escape Analysis
- Where is the static internal class loaded? Method area
- Describe the principle and mechanism of JVM loading class files?
- Java memory model, garbage collection mechanism, unreachable algorithm
- How is the jvm garbage collection mechanism implemented, the collection algorithm, when objects will be collected, what is gc-root, which objects can be used as gc-root, what situations can be caused by tag counting, and what algorithms are commonly used for garbage collection mechanisms now
- jvm memory model, java memory model
- How much do you know about JVM memory models, such as reordering, memory barriers, happen-before, main memory,
- Working memory, etc.
- What are the main components of a JVM?
- The area allocation of the Java virtual machine, and what are stored in each area
- If an object's reference is set to null, will the garbage collector immediately release the memory occupied by the object?
- Briefly describe Java memory allocation and recovery policies, as well as Minor GC and Major GC.
- Will garbage collection occur in the permanent generation of the JVM?
- What are class loaders and what are they?
- Class Loader Parental Delegation Model Mechanism?
- Where is the class file loaded after compilation
- How to dump all data in Java memory
- How to manually trigger full garbage collection, and how to immediately trigger garbage collection
- How does the JVM work?
- What is the difference between heap and stack?
- What is the basic principle of a garbage collector? Can the garbage collector immediately reclaim memory? Is there any way to proactively notify a virtual machine for garbage collection?
- What reference types are available in Java?
- How can I determine whether an object can be recycled? (Determining whether an object exists) How to determine whether an object exists
- What garbage collection algorithms does the JVM have? (4 types)
- What garbage collectors does the JVM have? The advantages and disadvantages of each of the (7) types, focusing on cms and G1, including principles, processes, advantages and disadvantages. Throughput first and response first garbage collector selection
- Implementation principle of garbage collection algorithm.
- Briefly describe how generational garbage collectors work?
- In the Java language, determining whether a piece of memory space meets the standards for garbage collector collection
- Tell me about three GC mechanisms. When will the younger generation trigger GC? When is young gc, full gc?
- Class loading mechanism
- Write out ⼏ jvm optimization configuration parameters. JVM Common Parameters (Please take out a piece of paper and write it silently)
- Memory structure of the JVM, Eden and Survival ratios.
- Why should JVM memory be divided into new generation, old generation, and persistent generation. Why should the Cenozoic be divided into Eden and Survivor.
- What do System. gc() and Runtime. gc() do?
- What is a complete GC process in a JVM? How can objects be promoted to the old age? Describe some of the main JVM parameters you know. Briefly describe the process of sub GC (remember the Minor GC and Major GC processes)
- Briefly describe the class loader you know, can it break parental delegation, and how to break it.
- How to print the thread stack information.
- Do the getClass() results of two ArrayList objects get the same (understand class loading and class type)
- What is Distributed Garbage Collection (DGC) and how it works
- What is the difference between a serial collector and a throughput collector?
- Class loading and parental delegation mechanism. If you know that tomcat breaks parental delegation, you will receive additional points.
- Chang's OOM, Four Quotes, and Classic Cases (localthread)
- How is a Java object created?
- What are the methods for creating objects?
- Where to store String str1="hello" str1, where to store hello, and the memory model of the jvm. String str1 = "hello" ; String str2 = "hello" ; The creation process of str2
- sting s=new string ("abc") Which objects have been created on the stack
- String s=new String(“xyz”); How many string objects have been created?
- The detailed process of the underlying implementation of sync, lock optimization, and the tuning of jvm parameters such as lock, including why this is set, benefits, some gc scenarios, and how to analyze gc logs
- Junit usage, execution order of before, beforeClass, after, afterClass
- What are the common causes of stack overflows?
- When does stack memory overflow occur.
- What is the difference between a memory leak and a memory overflow? Let's talk about what is a memory leak and a memory leak, what conditions can lead to memory leaks and overflows, and how do you troubleshoot memory leaks when they occur.
- What is a deadlock, the reasons for it, the basic methods to resolve it, how to avoid it, and how to check it.