# Garbage Collectors

Published articles for Garbage Collectors.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Tutorial: The G1 Garbage Collector

DevFeed: [Tutorial: The G1 Garbage Collector](<https://devfeed.tech/articles/tutorial-the-g1-garbage-collector-127559.md>)

Original publisher: [Read original article](<https://inside.java/2026/11/10/g1gc-tutorial/>)

Author: Billy Korando

Published: 2026-11-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [cms](<https://devfeed.tech/tags/cms.md>), [collector](<https://devfeed.tech/tags/collector.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [design](<https://devfeed.tech/tags/design.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [g1](<https://devfeed.tech/tags/g1.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [history](<https://devfeed.tech/tags/history.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

G1 divides the heap into uniform regions and reclaims memory by evacuating live objects while making whole regions with unreachable objects available for reuse. Its cycle combines young-region collections with concurrent marking of old regions; when reclaiming old space, it favors regions with more garbage. G1 aims to balance throughput and pause times, while ParallelGC prioritizes throughput and ZGC prioritizes low latency. G1 is the default on JDK 27 and later; on JDK 9-26 it is selected when the JVM detects at least two CPU cores and more than 1792 MB of available memory, and on JDK 8 it must be enabled with `-XX:+UseG1GC`. The text advises relying on G1's heuristics where possible: heap size and pause-time goals involve tradeoffs among memory footprint, latency, and throughput. `-XX:MaxGCPauseMillis` is a soft target, not a guarantee.

### Source excerpt

In this tutorial, we will cover a brief history of G1, its key design concepts, and how to use it.

## Episode 74 "Ask the Architects at Devoxx" \[AtA\]

DevFeed: [Episode 74 "Ask the Architects at Devoxx" \[AtA\]](<https://devfeed.tech/articles/episode-74-ask-the-architects-at-devoxx-ata-136292.md>)

Original publisher: [Read original article](<https://inside.java/podcast/74/>)

Author: Nicolai Parlog

Published: 2026-11-05T00:00:00Z

Content type: news

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [ai](<https://devfeed.tech/tags/ai.md>), [architect](<https://devfeed.tech/tags/architect.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [ata](<https://devfeed.tech/tags/ata.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [core-libraries](<https://devfeed.tech/tags/core-libraries.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [deprecations](<https://devfeed.tech/tags/deprecations.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [heap](<https://devfeed.tech/tags/heap.md>), [introspection](<https://devfeed.tech/tags/introspection.md>), [java](<https://devfeed.tech/tags/java.md>), [java-language](<https://devfeed.tech/tags/java-language.md>), [layout](<https://devfeed.tech/tags/layout.md>), [memory](<https://devfeed.tech/tags/memory.md>), [modules](<https://devfeed.tech/tags/modules.md>), [performance](<https://devfeed.tech/tags/performance.md>), [questions](<https://devfeed.tech/tags/questions.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [specialization](<https://devfeed.tech/tags/specialization.md>), [string](<https://devfeed.tech/tags/string.md>), [templates](<https://devfeed.tech/tags/templates.md>), [thread](<https://devfeed.tech/tags/thread.md>), [virtual](<https://devfeed.tech/tags/virtual.md>)

### AI overview

At Devoxx Belgium 2026, audience members asked Java architects about a broad set of language, API, and runtime topics. Questions covered virtual-thread scheduler deprecations and removals, Javadoc and AI, OpenJDK priorities, string internals and templates, primitive specialization, modules, memory layout introspection, easier construction, automatic heap sizing, and a keynote on the year of the runtime. The excerpt lists topics but does not provide the panel's answers.

### Source excerpt

Recent and upcoming Java features (e.g. value classes, withers, and lazy constants) make it easier to define, construct, copy, and access immutable data

## JDK 27 G1/Parallel/Serial GC changes

DevFeed: [JDK 27 G1/Parallel/Serial GC changes](<https://devfeed.tech/articles/jdk-27-g1-parallel-serial-gc-changes-107427.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/30/jdk27-gc-changes/>)

Author: Thomas Schatzl

Published: 2026-10-30T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [JDK Flight Recorder](<https://devfeed.tech/topics/jdk-flight-recorder.md>), [JEP-401](<https://devfeed.tech/topics/jep-401.md>)

Tags: [g1](<https://devfeed.tech/tags/g1.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc](<https://devfeed.tech/tags/gc.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [serial](<https://devfeed.tech/tags/serial.md>)

### AI overview

JDK 27 makes G1 the default garbage collector across environments; Serial GC remains selectable with `-XX:+UseSerialGC`, and the excerpt notes that G1 is not best for every application. G1 changes also remove heap resizing after Full GC based on the default MinHeapFreeRatio and MaxHeapFreeRatio values, improve adaptive concurrent-marking behavior, and fix reclaiming some humongous objects held alive by weak references. Parallel GC can now lower its adaptive tenuring threshold and expand the heap after repeated large allocations cause Full GCs. Across collectors, TLAB sizing better handles many short-lived, lightly allocating threads, and string-deduplication logs and JFR events improve. The excerpt says there were no notable Serial-specific changes beyond its reduced default use; about half of the roughly 350 GC changes were refactorings and cleanups, and another 35% were fixes and robustness work.

### Source excerpt

Now that the JDK 27 has been released, I thought it would be time to discuss interesting changes in OpenJDK's stop-the-world collectors in the HotSpot VM once more.

## Elevators, toasters, and the birth of Java

DevFeed: [Elevators, toasters, and the birth of Java](<https://devfeed.tech/articles/elevators-toasters-and-the-birth-of-java-102895.md>)

Original publisher: [Read original article](<https://stackoverflow.blog/2026/10/27/elevators-toasters-and-the-birth-of-java/>)

Author: Phoebe Sajor

Published: 2026-10-27T07:40:00Z

Content type: article

Language: en

Sources: [Stack Overflow](<https://devfeed.tech/sources/stack-overflow-blog.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>)

Tags: [concurrent](<https://devfeed.tech/tags/concurrent.md>), [consumer-electronics](<https://devfeed.tech/tags/consumer-electronics.md>), [documentary](<https://devfeed.tech/tags/documentary.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [history](<https://devfeed.tech/tags/history.md>), [java](<https://devfeed.tech/tags/java.md>), [language](<https://devfeed.tech/tags/language.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-management](<https://devfeed.tech/tags/memory-management.md>), [networking](<https://devfeed.tech/tags/networking.md>), [podcast](<https://devfeed.tech/tags/podcast.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [se-stackoverflow](<https://devfeed.tech/tags/se-stackoverflow.md>), [se-tech](<https://devfeed.tech/tags/se-tech.md>), [sun-microsystems](<https://devfeed.tech/tags/sun-microsystems.md>), [virtual](<https://devfeed.tech/tags/virtual.md>), [virtual-machine](<https://devfeed.tech/tags/virtual-machine.md>)

### AI overview

James Gosling describes how early networking friction shaped Java's goal of interconnectedness, how consumer electronics companies' stringent reliability requirements influenced the Java virtual machine, and how garbage collectors evolved to support large-scale concurrent memory management. The excerpt gives no further technical detail on these developments.

### Source excerpt

Ryan sits down with James Gosling, creator of Java at Sun Microsystems, to talk about the early networking friction that drove the need for interconnectedness, the stringent reliability requirements of consumer electronics companies that inspired the Java virtual machine, and the evolution of garbage collectors that allow Java to handle large-scale concurrent memory management.

## JEP targeted to JDK 28: 546: Adaptive Heap Sizing for ZGC

DevFeed: [JEP targeted to JDK 28: 546: Adaptive Heap Sizing for ZGC](<https://devfeed.tech/articles/jep-targeted-to-jdk-28-546-adaptive-heap-sizing-for-zgc-89906.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/19/jep546-target-jdk28/>)

Author: Erik Österlund

Published: 2026-10-19T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [case-study](<https://devfeed.tech/tags/case-study.md>), [container](<https://devfeed.tech/tags/container.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc](<https://devfeed.tech/tags/gc.md>), [h2](<https://devfeed.tech/tags/h2.md>), [heap](<https://devfeed.tech/tags/heap.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [jep](<https://devfeed.tech/tags/jep.md>)

### AI overview

JEP 546 proposes optional adaptive heap sizing for ZGC, enabled with `-XX:+ZAdaptiveHeapSizing`, to balance heap memory against garbage-collection CPU use and respond to resource contention on the host. ZGC expands the heap when GC CPU use exceeds a configurable target intensity and contracts it when use falls below target; it also adjusts heap size to accommodate neighboring processes, prioritizing that behavior over the target. Lower intensity favors less GC CPU use and more memory, while higher intensity favors less memory and more CPU. The proposal aims to remove the need to set `-Xmx` or `SoftMaxHeapSize`, while retaining existing sizing options. Its default maximum would rise from 25% to nearly all physical memory, which could leave other processes short of memory. The case study reports heap adjustments across four JVMs sharing a 16 GB container, with temporary latency and throughput degradation during memory contention.

### Source excerpt

The following JEP is targeted to JDK 28: 546: Adaptive Heap Sizing for ZGC

## JEP targeted to JDK 28: 545: Faster Startup and Warmup with ZGC

DevFeed: [JEP targeted to JDK 28: 545: Faster Startup and Warmup with ZGC](<https://devfeed.tech/articles/jep-targeted-to-jdk-28-545-faster-startup-and-warmup-with-zgc-88400.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/16/jep545-target-jdk28/>)

Author: Erik Österlund

Published: 2026-10-16T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [app startup](<https://devfeed.tech/topics/app-startup.md>), [Project Leyden](<https://devfeed.tech/topics/project-leyden.md>)

Tags: [faster](<https://devfeed.tech/tags/faster.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-28](<https://devfeed.tech/tags/jdk-28.md>), [jep](<https://devfeed.tech/tags/jep.md>), [startup](<https://devfeed.tech/tags/startup.md>)

### AI overview

JEP 545 proposes improving ZGC startup and warmup by defaulting to a 2MB initial heap, expanding the heap aggressively on dedicated worker threads, pre-touching newly committed memory concurrently, and using large pages where supported. This aims to avoid choosing between a small heap for fast startup and a large, pre-touched heap for fast warmup; with adaptive heap sizing enabled, the proposal says users need not set -Xms, -Xmx, or AlwaysPreTouch. In a Spring PetClinic study, the proposed configuration started in 5.84 seconds and reached stable sub-20ms P99 latency after a 10-second ramp-up, compared with 5.86 seconds startup and about 80 seconds to warm up on JDK 25 with a 2MB initial heap. Disabling concurrent pre-touching or large pages increased warmup to 34 or 18 seconds, respectively. Large-page use depends on OS support; the proposal cites Linux 6.1's process-accessible upgrade API. A stated risk is slower warmup for applications tuned to expect a larger default initial heap. These are proposal results, not a guarantee for all applications.

### Source excerpt

The following JEP is targeted to JDK 28: 545: Faster Startup and Warmup with ZGC

## Performance Improvements in JDK 27

DevFeed: [Performance Improvements in JDK 27](<https://devfeed.tech/articles/performance-improvements-in-jdk-27-60738.md>)

Original publisher: [Read original article](<https://inside.java/2026/09/28/performance-update-jdk27/>)

Author: Claes Redestad

Published: 2026-09-28T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [openjdk](<https://devfeed.tech/topics/openjdk.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [escape analysis](<https://devfeed.tech/topics/escape-analysis.md>), [RAID](<https://devfeed.tech/topics/raid.md>)

Tags: [compilation](<https://devfeed.tech/tags/compilation.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [graviton](<https://devfeed.tech/tags/graviton.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jdk-27](<https://devfeed.tech/tags/jdk-27.md>), [jit](<https://devfeed.tech/tags/jit.md>), [locking](<https://devfeed.tech/tags/locking.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [optimizations](<https://devfeed.tech/tags/optimizations.md>), [performance](<https://devfeed.tech/tags/performance.md>)

### AI overview

JDK 27 includes more than 2,300 commits since JDK 26, covering libraries, garbage collectors, the JIT compiler, and runtime. Compact Object Headers are enabled by default, and G1 becomes the default garbage collector. The article reports local benchmark improvements for map-copying changes and a text-layout data-structure change, while noting that benchmark results do not predict whole-application impact and depend on workload and configuration.

### Source excerpt

Notable performance improvements in JDK27

## The Limitations of Running a Workload Generator In the Same JVM as the System-Under-Test

DevFeed: [The Limitations of Running a Workload Generator In the Same JVM as the System-Under-Test](<https://devfeed.tech/articles/the-limitations-of-running-a-workload-generator-in-the-same-jvm-as-the-system-under-test-59723.md>)

Original publisher: [Read original article](<https://inside.java/2026/09/25/limitations-of-running-a-workload-generator-in-the-same-jvm/>)

Author: Jonas Norlinder

Published: 2026-09-25T00:00:00Z

Content type: news

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Performance Testing](<https://devfeed.tech/topics/performance-testing.md>), [observability](<https://devfeed.tech/topics/observability.md>)

Tags: [closed-loop-load-generator](<https://devfeed.tech/tags/closed-loop-load-generator.md>), [coordinated-omission](<https://devfeed.tech/tags/coordinated-omission.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc-tail-latency-benchmarking](<https://devfeed.tech/tags/gc-tail-latency-benchmarking.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [jvm-benchmarking-methodology](<https://devfeed.tech/tags/jvm-benchmarking-methodology.md>), [latency](<https://devfeed.tech/tags/latency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [serviceability](<https://devfeed.tech/tags/serviceability.md>), [specjbb2015](<https://devfeed.tech/tags/specjbb2015.md>)

### AI overview

In these non-compliant SPECjbb2015 p99 experiments, running the workload generator with the backend in Composite-Net produced roughly 2-3x higher latency than Distributed for collectors with substantial pauses; ZGC, with pauses under 1 ms, showed no discrepancy. The excerpt attributes the gap to the shared JVM being unable to schedule requests during GC pauses. SPECjbb2015 corrects coordinated omission by measuring from scheduled submission time, but that cannot restore requests that were never scheduled while the generator was suspended. Distributed and MultiJVM place the generator in its own JVM; the authors recommend those modes for latency analysis. The study used specific benchmark and JVM settings, so its results are not official scores or compliant submissions.

### Source excerpt

When you evaluate a system with a garbage collector and want to understand its tail latency, you often see SPECjbb2015 or DaCapo used. While both offer corrective measures for coordinated omission, only SPECjbb2015 can run the workload generator and backend server in the same JVM, as well as separate them into different JVMs. This post is a deep dive that uses SPECjbb2015's flexibility to explore and highlight the risks of running the workload generator in the same JVM as the backend.

## Principles of Memory Management in Java

DevFeed: [Principles of Memory Management in Java](<https://devfeed.tech/articles/principles-of-memory-management-in-java-15130.md>)

Original publisher: [Read original article](<https://inside.java/2026/09/04/memory-management-principles-java/>)

Author: Ron Pressler

Published: 2026-09-04T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [cpu](<https://devfeed.tech/topics/cpu.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [java](<https://devfeed.tech/tags/java.md>), [javaone](<https://devfeed.tech/tags/javaone.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [memory](<https://devfeed.tech/tags/memory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [talk](<https://devfeed.tech/tags/talk.md>)

### AI overview

This talk explains the design choices behind the JDK's garbage collectors and how Java memory management affects application performance. It also examines the relationship between RAM and CPU and questions whether Java's memory use is inherently wasteful.

### Source excerpt

In this talk, we'll explore why the JDK's garbage collectors work the way they do and how Java memory management affects application performance. We'll look at the sometimes non-obvious relationship between RAM and CPU, and why they must always be considered together.

## How Gradle Is Javamaxxing

DevFeed: [How Gradle Is Javamaxxing](<https://devfeed.tech/articles/how-gradle-is-javamaxxing-24628.md>)

Original publisher: [Read original article](<https://blog.gradle.org/gradle-is-javamaxxing>)

Author: Laura Kassovic

Published: 2026-05-28T04:00:00Z

Content type: article

Language: en

Sources: [Gradle](<https://devfeed.tech/sources/the-gradle-blog.md>)

Topics: [Gradle](<https://devfeed.tech/topics/gradle.md>), [Java](<https://devfeed.tech/topics/java.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>)

Tags: [bytecode](<https://devfeed.tech/tags/bytecode.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [java](<https://devfeed.tech/tags/java.md>), [java-8](<https://devfeed.tech/tags/java-8.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance-optimization](<https://devfeed.tech/tags/performance-optimization.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

Gradle aggressively adopts new JDK releases because newer JVMs can improve build speed, memory use, startup behavior, and maintainability. JVM toolchains allow Gradle to run on JDK 26 while compiling and testing projects for older Java versions, including producing Java 8-compatible bytecode.

### Source excerpt

Some people optimize one part of their lives to the absolute limit, then past it. They call it "-maxxing." Houseplantmaxxing. Sleepmaxxing. Tokenmaxxing. The Gradle Build Tool is Javamaxxing. TL;DR Breathe easy knowing you can run modern Gradle on JDK 26 while still shipping Java 8-compatible artifacts: Gradle aggressively adopts new JDKs because newer JVMs make builds faster, leaner, and easier to maintain. Upgrading the JDK that runs Gradle is often the easiest performance win. JVM toolchains fully separate the JVM running Gradle, the JVM compiling your code, and the JVM running your tests. NOT TL;DR We aggressively adopt new JDK releases as soon as we responsibly can. Not because it's trendy. Because newer JDKs make Gradle faster, leaner, and easier to maintain. Every OpenJDK release ships improvements to the JVM; garbage collectors, compiler infrastructure, startup behavior, memory layout, and runtime APIs. As a high-performance JVM build tool, Gradle benefits directly from all of it. The question people immediately ask is: Does this mean my project also has to run on the newest JDK? No. That coupling effectively disappeared once Gradle introduced JVM toolchains. With toolchains, the JVM that runs Gradle is completely separate from the JVM that compiles, tests, and executes your code. You can run Gradle on JDK 26 today and still produce Java 8 bytecode. What Is the Current State of Gradle and Java? We add daemon support for every new JDK as soon as the ecosystem permits: Java 24 in Gradle 8.14.0, Java 25 in 9.1.0 (released two days after JDK 25 GA), Java 26 in 9.4.0. The full mapping is in the Compatibility Matrix. We then bump the minimum JVM required to execute Gradle as users move. Gradle 9.0.0, released on July 31, 2025, raised the minimum JVM required to run the Gradle daemon to Java 17. That was the first daemon JVM floor increase since Gradle 5.0 made Java 8 the minimum back in 2018. The next major transition is already underway, Gradle 10.0.0 will likely

## This Month in Julia World (June 2024)

DevFeed: [This Month in Julia World (June 2024)](<https://devfeed.tech/articles/this-month-in-julia-world-june-2024-116336.md>)

Original publisher: [Read original article](<https://julialang.org/blog/2024/07/this-month-in-julia-world/index.html>)

Author: Stefan Krastanov

Published: 2024-07-06T00:00:00Z

Content type: news

Language: en

Sources: [JuliaLang - The Julia programming language](<https://devfeed.tech/sources/julialang-the-julia-programming-language.md>)

Topics: [The Julia Language](<https://devfeed.tech/topics/julia.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [audio](<https://devfeed.tech/tags/audio.md>), [change](<https://devfeed.tech/tags/change.md>), [cleanup](<https://devfeed.tech/tags/cleanup.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [codec](<https://devfeed.tech/tags/codec.md>), [community](<https://devfeed.tech/tags/community.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [emojis](<https://devfeed.tech/tags/emojis.md>), [engine](<https://devfeed.tech/tags/engine.md>), [experimentation](<https://devfeed.tech/tags/experimentation.md>), [export](<https://devfeed.tech/tags/export.md>), [external](<https://devfeed.tech/tags/external.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [global](<https://devfeed.tech/tags/global.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [inference](<https://devfeed.tech/tags/inference.md>), [julia](<https://devfeed.tech/tags/julia.md>), [june](<https://devfeed.tech/tags/june.md>), [newsletter](<https://devfeed.tech/tags/newsletter.md>)

### AI overview

The June 2024 newsletter excerpt highlights ongoing work to improve Julia without requiring a breaking Julia 2.0 release, including proposals for strict mode and versioned exports. Compiler work includes a reorganized engine for inference and code generation, compilation timing flags on master, and experiments aimed at better tuple loop unrolling and type stability. Other updates include a UUID 7 implementation, improved stack overflow traces, and progress toward plugging in external garbage collectors, which is still at the refactoring stage. The excerpt also notes package and community developments: Dagger.jl improvements for multinode linear algebra, a new Julia interface for GTPSA, funded SciML projects, and ChainRules seeking a primary maintainer. It is an editorialized, incomplete newsletter, so these points do not cover all June activity.

### Source excerpt

Community Newsletter for June 2024

## Basics of Java Garbage Collection

DevFeed: [Basics of Java Garbage Collection](<https://devfeed.tech/articles/basics-of-java-garbage-collection-24980.md>)

Original publisher: [Read original article](<https://codeahoy.com/2017/08/06/basics-of-java-garbage-collection/>)

Author: umer

Published: 2017-08-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Code Ahoy - Articles](<https://devfeed.tech/sources/code-ahoy-articles.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [real-time](<https://devfeed.tech/topics/real-time.md>)

Tags: [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc](<https://devfeed.tech/tags/gc.md>), [hotspot](<https://devfeed.tech/tags/hotspot.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [latency](<https://devfeed.tech/tags/latency.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [threads](<https://devfeed.tech/tags/threads.md>), [troubleshooting](<https://devfeed.tech/tags/troubleshooting.md>)

### AI overview

This tutorial provides a high-level overview of Java garbage collection, including collector algorithms, stop-the-world pauses, throughput and low-latency tradeoffs, JVM heap generations, and troubleshooting performance issues.

### Source excerpt

Knock, knock. Who's there? ...long GC pause... Java. It's an old joke from the time when Java was new and slow compared to other languages. Over time, Java became a lot faster. Today it powers many real-time applications with hundreds of thousands of concurrent users. These days, the biggest impact on Java's performance comes from its garbage collection. Fortunately, in many cases, it can be tweaked and optimized to improve performance. For most applications, the default settings of the JVM work fine. But when you start noticing performance issues caused by garbage collection and giving more heap memory isn't possible, you need to tune and optimize the garbage collection. For most developers, it's a chore. It requires patience, good knowledge of how garbage collection works and an understanding of application's behavior. This post is a high-level overview of Java's garbage collection with some examples of troubleshooting performance issues. Let's get started. Java ships with several garbage collectors. More specifically, these are different algorithms that run in their own threads. Each works differently and has pros and cons. The most important thing to keep in mind is that all garbage collectors stop the world. That is, your application is put on hold or paused, as the garbage is collected and taken out. The main difference among the algorithms is how they stop the world. Some algorithms sit completely idle until the garbage collection is absolutely needed and then pause your application for a long period while others do most of their work concurrently with your application and thus need a shorter pause during stop the world phase. The best algorithm depends on your goals: are your optimizing for throughput where long pauses every now and then are tolerable or you are optimizing for low latency by spreading it out and having short pauses all along. To enhance the garbage collection process, Java (HotSpot JVM, more accurately) divides up the heap memory into two genera