Tagged articles
G1GC
41 articles · Page 1 of 1
This guide covers JVM memory structure, garbage collector selection (G1, ZGC, Parallel), GC log analysis, OOM diagnosis techniques, and practical parameter templates for Spring Boot services to resolve memory leaks, reduce GC pauses, and optimize production performance.
G1GCGC LogsJVM
0 likes · 22 min read


ITPUBSep 24, 2026 · Backend Development
Ctrip's JDK 25 upgrade revealed a silent data corruption bug in G1GC's Optional Evacuation phase, where pinned objects used by JNI critical sections (e.g., zstd-jni) were incorrectly moved, corrupting Parquet/ORC files without write-time errors; root cause traced to commit 86cec4ea and fixed via backport JDK-8377811.
G1GCJDK 25JNI
0 likes · 24 min read


liandkSep 21, 2026 · Backend Development
This article provides a standardized JVM tuning methodology with three production-ready parameter templates for low (2C4G), mid (8C16G), and high (16C32G+) spec servers, covering G1 and ZGC configurations, common pitfalls, and verification steps.
G1GCGC optimizationJVM tuning
0 likes · 11 min read

Java 26, the latest LTS release, delivers over 40% faster startup, 5‑10% higher G1 GC throughput, reduced memory footprint, deeper container awareness, and improved virtual‑thread handling, making it a compelling upgrade for Kubernetes‑deployed Java applications despite a few migration caveats.
CloudNativeContainerAwarenessG1GC
0 likes · 9 min read

The article explains how to safely adjust JVM parameters for large‑scale e‑commerce events by first calculating the total container memory usage, using targeted G1GC tweaks, validating changes with load tests and metrics, and preparing a detailed gray‑release and rollback plan.
ArthasG1GCGrayRelease
0 likes · 15 min read

A rare silent data‑corruption bug in JDK 25’s G1GC caused Parquet and ORC files written by Spark and Flink to become unreadable, prompting a multi‑stage investigation that traced the issue to an optional evacuation flaw affecting JNI‑pinned objects, which was later back‑ported and fixed in the OpenJDK community.
AI debuggingFlinkG1GC
0 likes · 20 min read

During a gray‑release of JDK 25 on Ctrip's massive Spark and Flink clusters, silent data corruption appeared in Parquet and ORC files, traced to a G1GC Optional Evacuation bug that moved JNI‑pinned objects, a root cause later back‑ported and fixed in JDK 25.0.3.
FlinkG1GCJDK
0 likes · 21 min read


ITPUBOct 18, 2025 · Backend Development
This article details the step‑by‑step investigation and JVM‑level optimizations—including early tenuring, parameter tuning, ZGC migration, and an Eden‑pre‑heat trick—that transformed a high‑concurrency, low‑latency system from 95% to 99.995% success during massive index switches.
G1GCGC tuningJVM
0 likes · 22 min read

The article explains what a GC spike (Garbage Collection Spike) is, analyzes its typical causes such as large short‑lived objects, memory leaks, and heap configuration, presents a real‑world high‑concurrency case study, and details step‑by‑step JVM tuning and architectural strategies that reduced latency spikes and raised service availability from 95% to over 99.99%.
G1GCGCJVM tuning
0 likes · 32 min read

This article details a step‑by‑step investigation of a high‑concurrency, low‑latency system whose instability was traced to long‑lasting Young‑GC pauses during massive index swaps, and explains how targeted JVM parameter tweaks, GC‑log analysis, and a lightweight Eden‑pre‑heat technique finally achieved near‑perfect availability.
G1GCGC tuningJVM
0 likes · 22 min read

An in‑depth investigation of a Java service’s memory alarm reveals that a surge of temporary NioChannel objects, caused by high QPS and insufficient socket reuse, prematurely promotes objects to the old generation, leading to uncollected memory growth, and the article details the diagnosis, GC tuning, and mitigation steps.
G1GCGCJVM
0 likes · 29 min read

This article walks through a real‑world production case, showing how to systematically detect, analyze, and resolve severe JVM garbage‑collection pauses that caused service timeouts, by examining CPU, memory, GC logs, adjusting collector settings, and aligning JVM threads with Kubernetes resource limits.
G1GCGCJVM
0 likes · 15 min read

This article walks through a real‑world production case, detailing how to systematically detect, analyze, and resolve severe JVM garbage‑collection pauses in a high‑concurrency Spring Boot microservice, covering resource analysis, JVM flag tuning, G1GC migration, JMX listeners, and GC‑log investigation.
G1GCJVMKubernetes
0 likes · 16 min read

After caching, indexing, and async optimizations still leave a Spring Boot REST API sluggish, this guide shows how fine‑tuning JVM options—such as enabling G1GC, adjusting pause targets, compressing class metadata, shrinking thread stacks, and pre‑touching memory—can triple response speed without changing application code.
G1GCJVMJava
0 likes · 7 min read

After upgrading to JDK 11 and switching to G1GC, the author observed memory usage exceeding 90% due to G1 Old GC not reclaiming space, and provides a detailed analysis of the issue, including heap inspection, GC mechanisms, and practical tuning solutions such as adjusting heap size and G1GC parameters.
G1GCGC tuningJDK11
0 likes · 33 min read


JavaEdgeJul 10, 2024 · Backend Development
This guide explains how to enable detailed G1 GC logging in Java, interprets both Minor (YGC) and Full GC log entries, breaks down heap size changes, worker threads, pause times, and points to the GCEasy analysis tool for deeper insight.
G1GCGC LogsJava
0 likes · 8 min read

Uber runs over 20 Presto clusters serving more than 500,000 daily queries, but frequent full GCs and OOMs threatened stability; by analyzing G1GC behavior and adjusting IHOP, heap waste, free space, and young‑gen size on JDK 8 and JDK 11, they cut full GC occurrences by up to 80% and markedly improved overall reliability.
Cluster stabilityG1GCJDK11
0 likes · 13 min read

The investigation revealed that G1GC pauses were caused by uncontrolled growth of the JVM StringTable, triggered by Jackson’s InternCache interning countless random JSON field names, and was mitigated by enlarging the young generation, disabling field‑name interning, tuning G1 parameters, and monitoring StringTable size.
G1GCGC tuningJSON interning
0 likes · 37 min read

This article details a step‑by‑step investigation of a container whose memory usage spiked to 99% due to large objects being allocated to the old generation under G1GC, explains the root cause, demonstrates reproducible tests with JVM flags and monitoring tools, and provides practical mitigation strategies.
BackendDockerFullGC
0 likes · 15 min read

This article walks through a real‑world G1 GC incident where massive humongous object allocations caused old‑generation memory spikes at night, explains the underlying JVM memory layout, shows how to trace the problem with heap dumps and monitoring data, and offers practical tips to avoid similar issues in Java applications.
G1GCHumongousObjectJVM
0 likes · 41 min read

This article explains the G1 garbage collector’s heap layout, collection cycles, pause prediction, log analysis, and monitoring tools, helping Java developers diagnose and resolve performance issues such as frequent restarts, OOM, CPU spikes, and periodic latency spikes.
G1GCJVMJava
0 likes · 19 min read

This case study examines a recurring out‑of‑memory issue in an Elasticsearch 6.8 cluster that spikes during low‑traffic night hours, analyzes GC logs and heap dumps, and details how adjusting G1 GC parameters resolved the problem and stabilized performance.
G1GCGC tuningOutOfMemory
0 likes · 11 min read

This article analyzes a Java 1.8 application that suffers from long G1GC pauses caused by mis‑configured JVM flags and a MySQL driver that creates massive phantom references, explains the GC log findings, and presents concrete JVM, connection‑pool and driver‑upgrade solutions to eliminate the pauses.
G1GCJVM tuningJava
0 likes · 31 min read

The article investigates intermittent long G1GC pauses in a Java 1.8 application caused by mis‑configured G1 parameters and MySQL driver phantom references that retain many idle connections, then presents detailed log analysis and multiple remediation steps including JVM flag tuning, connection‑pool adjustments, and driver upgrades.
G1GCJVMMySQL
0 likes · 30 min read

This article details a comprehensive investigation of an out‑of‑memory crash in a critical Elasticsearch cluster, explains how GC logs and heap dumps revealed a to‑space‑exhausted condition, and describes the G1GC tuning parameters that eliminated the nightly spikes and stabilized performance.
BackendElasticsearchG1GC
0 likes · 9 min read

The article provides a hands‑on migration guide for moving an internal gateway service from Java 8 to JDK 11 with the G1 garbage collector, detailing a checklist of tool and dependency updates, showcasing up to 105 % performance gains, outlining new language features, virtual‑thread usage, and best‑practice recommendations for a smooth, cost‑effective upgrade.
G1GCJDK11Java
0 likes · 32 min read

The article details how a Java team diagnosed frequent Full GC pauses caused by CMS, migrated to G1GC, adjusted JVM flags, scaled container specs, and achieved dramatically lower pause times, reduced instance counts, and significant cost savings while improving overall service stability.
BackendCMSG1GC
0 likes · 13 min read

The investigation revealed that repeatedly creating XStream objects generated thousands of CompositeClassLoader instances, inflating the JVM’s SystemDictionary and causing extremely long Ext Root Scanning during G1 Young GC pauses, which was resolved by caching XStream per class and reducing YGC pauses from seconds to milliseconds.
ClassLoaderG1GCJava
0 likes · 17 min read

Java 17, the first LTS release in three years, brings 14 new JEPs, a free Oracle JDK license, and performance gains demonstrated by OptaPlanner benchmarks that show up to 8.66% faster than Java 11, prompting developers to consider upgrading from older versions.
G1GCJDK 17Java
0 likes · 10 min read

The article explains Java 17’s release as the first LTS since Java 11, details Oracle’s new free JDK license, and presents a thorough OptaPlanner benchmark that compares JDK 11, 16, and 17 using G1GC and ParallelGC, revealing performance gains and guiding upgrade decisions.
G1GCJDK 17Java
0 likes · 10 min read

This article examines how Oracle's G1 garbage collector, the default since JDK 9, outperforms the traditional CMS collector in multi‑core, large‑memory environments through parallelism, space integration, predictive pause models, and real‑world performance testing on Yuewen's licensing service.
G1GCJVMJava
0 likes · 9 min read

This article explains the evolution of garbage collection, why G1GC is chosen for low‑latency high‑availability Java services, how it achieves soft real‑time guarantees, the internal heap and region structures, concurrent marking, SATB, remembered sets, and the algorithms used to predict pause times.
G1GCJVMPause Prediction
0 likes · 20 min read

This article examines the challenges of GC pauses in low‑latency HBase services, explains ZGC’s fully concurrent architecture and key techniques such as colored pointers and read barriers, and presents experimental comparisons of ZGC and G1 GC using YCSB benchmarks, highlighting latency, throughput and CPU usage differences.
G1GCHBaseYCSB
0 likes · 18 min read

TencentKona 8.0.4 introduces an SM2/SM3/SM4 JCE provider for Chinese national cryptographic algorithms, parallel G1 Full GC, parallel heap inspection, and various performance enhancements, all demonstrated with a micro‑service encryption example and detailed curl commands for practical use.
G1GCJDKParallelGC
0 likes · 9 min read

During a full‑chain load test, latency spikes were traced to a slow G1GC pause caused by single‑threaded reference processing of many Finalizer objects, which originated from an over‑aggressive Jedis connection pool; enabling the JVM flag -XX:+ParallelRefProcEnabled eliminated the bottleneck and restored performance.
G1GCGC performanceJVM tuning
0 likes · 8 min read

This guide explains how to configure JVM options to capture GC logs, use GCViewer to interpret Parallel, G1, and CMS collector logs, decode each log field, and apply concrete tuning parameters to improve pause times and overall application throughput.
G1GCGC tuningParallelGC
0 likes · 17 min read

This article shares practical experience tuning Java's G1GC, including required JVM flags, key parameters such as G1NewSizePercent and InitiatingHeapOccupancyPercent, an automated script for systematic parameter adjustment, and tools for log analysis to achieve optimal garbage‑collection performance.
G1GCJVM tuningJava
0 likes · 4 min read

The article explains a sudden 90% memory jump after upgrading to G1, analyzes the “to-space exhausted” GC log, clarifies Xmx/Xms behavior, and provides concrete JVM tuning recommendations to prevent promotion failures and long pauses.
G1GCJVM tuningJava performance
0 likes · 8 min read

This article explains the design principles, region-based architecture, object allocation strategies, Young and Mixed G1 GC phases, concurrent marking, three‑color marking, and practical tuning parameters for the G1 garbage collector in Java, illustrating concepts with code snippets and diagrams.
G1GCJVMJava
0 likes · 17 min read

This article outlines JD's attempts and explorations in customizing the JDK for HDFS, describing the background, limitations of Oracle JDK 1.8, the adoption of OpenJDK 11 with G1GC, a series of JVM and GC optimizations, performance results, and future development plans.
G1GCGC optimizationHDFS
0 likes · 16 min read

This article explains the origins, design goals, and detailed mechanisms of Java's G1 garbage collector—including regions, CSet, RSet, SATB, the full collection cycle, common pitfalls, and practical tuning recommendations—to help developers achieve predictable pause times and high throughput.
G1GCJavaPerformance Tuning
0 likes · 25 min read
