1. JVM Learning Resourceshistorical

    Summary and answers for 24 JVM interview questions - Juejin.

  2. Java Production Issue Troubleshootinghistorical

    Troubleshooting memory saturation, CPU/thread problems, deadlocks, JVM tuning, and related references.

  3. Garbage Collection Conceptshistorical

    Reference counting, reachability analysis, GC Roots, concrete garbage collection algorithms, and references.

  4. 7.4 Class Lifecyclehistorical

    The class lifecycle: loading, linking, initialization, use, unloading, class loaders, parent delegation, and related questions.

  5. 7.5 Memory Regionshistorical

    JVM memory regions: shared heap and method area, per-thread stack and program counter, and PermGen/Metaspace.

  6. 7.6 Tuning Approachhistorical

    Goals of tuning, overall production steps, JMeter load-test tuning, and CMS tuning flow.

  7. Garbage Collection Algorithmshistorical

    Mark-sweep, mark-compact, copying, and generational collection.

  8. Class Initialization Orderhistorical

    When initialization is triggered, initialization rules, and examples for a single class and an inheritance hierarchy.

  9. 7.9 Object Allocation Ruleshistorical

    Historical rules and flow for object allocation in the JVM.

  10. 7.10 3. Garbage Collectorshistorical

    Generational collection and historical Serial, Parallel, CMS, and G1 collectors, including CMS/G1 details and comparison.

  11. Custom Class Loaderhistorical

    When a custom class loader is needed, how to implement one with findClass or loadClass, an example, and a reference.

  12. Escape Analysishistorical

    What escape analysis is, how to enable it, optimizations for non-escaping objects, lock elimination, scalar replacement, stack allocation, and references.

  13. 7.13 4. Selecting a Specific Garbage Collector with JVM Parametershistorical

    Matching young- and old-generation collectors, JVM parameters, and how to choose.

  14. 7.14 Object Creation Processhistorical

    Code, bytecode, explanation, and a proposed solution for object-creation instruction reordering.

  15. Garbage Collectionhistorical

    Garbage-collection concepts, when GC happens, what gets collected, what GC does, and references.

  16. 7.16 Object Layout in Memoryhistorical

    Object composition, object headers, instance data, padding, and a JOL experiment.

  17. 7.17 Referenceshistorical

    Strong, soft, weak, and phantom references, examples, and WeakHashMap.

  18. How Objects Are Locatedhistorical

    Oracle JDK and OpenJDK use direct pointers: fast access, but pointers need to be updated if GC moves surviving objects.

  19. 7.19 OOM Exampleshistorical

    Why OOM occurs and examples for heap, Metaspace, stack overflow, GC overhead, direct buffer memory, and native-thread exhaustion.

  20. 7.20 Performance Analysis Toolshistorical

    Built-in JDK tools such as jps, jinfo, jstack, jmap, jstat, and jhat, plus JMX, MAT, Java Mission Control, BTrace, flame graphs, YourKit, JProfiler, and GC log tools.

  21. 7.21 JVM Parameter Tuninghistorical

    Which JVM parameters to tune, JVM parameter types, how to inspect them, common options, examples, and a typical configuration.

  22. 7.22 GC Log Analysishistorical

    Parallel GC logs, tools, and references.