Topic

Jvm

Learn Jvm as a connected topic across chapters, concepts, simulations, and interview reasoning.

10 Concepts6 Articles2h 19m

Overview

Learn Jvm as a connected topic across chapters, concepts, simulations, and interview reasoning.

How this topic helps

Java
Memory Management
Software Engineering
#apache Spark

Learning Path in this Topic

Series that contain articles from Jvm. Select a path to filter the article list.

Articles

6 matched articles

Article 1How JVM Garbage Collection Works: Types, Memory Impact, and TuningTLDR: JVM garbage collection automatically reclaims unused heap memory, but every algorithm makes a different trade-off between throughput, latency, and memory footprint. The default G1GC targets 200m25 minArticle 2Java 21 to 25: Virtual Threads, Pattern Matching, and Structured ConcurrencyTLDR: Java 21 LTS makes virtual threads a production-ready replacement for bounded thread pools — your newFixedThreadPool(200) can become newVirtualThreadPerTaskExecutor() and handle 10× the concurren22 minArticle 3Java 14 to 17: Records, Sealed Classes, Text Blocks, and Pattern MatchingTLDR: Java 14–17 ran a deliberate four-release preview-to-stable conveyor belt. Records replaced 50-line POJOs with one line. Text blocks ended escape-sequence chaos in multi-line strings. Sealed clas25 minArticle 4Java 8 to 11: Lambdas, Streams, Modules, and the End of BoilerplateTLDR: Java 8 introduced the most impactful set of language features in Java's history — lambdas eliminated anonymous inner classes, streams replaced imperative loops, and Optional made null handling e16 minArticle 5Spark Executor Sizing: Memory Model, Core Tuning, and GC StrategyTLDR: Spark executor OOMs are almost never caused by insufficient total cluster RAM — they are caused by misallocating memory across five distinct JVM regions while ignoring GC behavior and memoryOver37 minArticle 6Java Memory Model Demystified: Stack vs. HeapTLDR: Java memory is split into two main areas: the Stack for method execution frames and primitives, and the Heap for all objects. Understanding their differences is essential for avoiding stack over14 min