Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 7.13 4. Selecting a Specific Garbage Collector with JVM Parametershistorical
JVM startup options select garbage collectors. These notes record collector combinations for young and old generations and their corresponding flags.
- 7.14 Object Creation Processhistorical
Java object creation involves allocation, constructor invocation, and storing a reference. These notes trace a new expression through bytecode.
- Garbage Collectionhistorical
JVM garbage collection can be studied through its concepts, algorithms, collectors, and selection flags. This page links those topics.
- 7.16 Object Layout in Memoryhistorical
Java objects store headers and instance data, with arrays also carrying length information. These notes compare ordinary-object and array layouts.
- 7.17 Referenceshistorical
Java references have different strengths that affect whether an object can be reclaimed. These notes compare them through examples, starting with strong references.
- How Objects Are Locatedhistorical
Java can locate objects through direct pointers. These notes compare object-access approaches and examine references when garbage collection moves objects.
- 7.19 OOM Exampleshistorical
GC cannot reclaim strongly reachable objects, which may continue consuming memory. These notes illustrate out-of-memory failures across memory areas.
- 7.20 Performance Analysis Toolshistorical
JVM performance troubleshooting begins with process information and suitable diagnostic tools. These notes organize tools by their commands and output.
- 7.21 JVM Parameter Tuninghistorical
JVM heap size can be configured with options such as -Xms and -Xmx. These notes continue with generation ratios and their relationship to GC costs.
- 7.22 GC Log Analysishistorical
GC logs expose young- and old-generation collections. These notes use Parallel GC logs to explain output fields and analysis tools.