Tagged articles
24 articles
Page 1 of 1
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Jul 24, 2025 · Backend Development

How Xiaohongshu Boosted Java Performance by 10% with a RedJDK Upgrade

Xiaohongshu’s middleware team migrated thousands of Java services from JDK 8 to RedJDK 11/17, achieving over 10% performance gains, 50% GC pause reduction, and eliminating OOM crashes through systematic JDK upgrades, GC tuning, native‑memory improvements, and standardized deployment pipelines.

GC optimizationNative MemoryVirtual Threads
0 likes · 22 min read
How Xiaohongshu Boosted Java Performance by 10% with a RedJDK Upgrade
Selected Java Interview Questions
Selected Java Interview Questions
May 22, 2025 · Backend Development

Root Cause Analysis of Excessive Native Memory Usage in a Spring Boot Application after Migrating to MDP Framework

After migrating a project to the MDP framework based on Spring Boot, the system repeatedly reported high swap usage; the author investigated JVM settings, used tools like jcmd, pmap, gperftools, strace, and GDB, identified native memory leaks caused by Spring Boot’s Reflections scanning and Inflater usage, and resolved the issue by configuring scan paths and fixing Inflater handling.

Native MemorySpring Bootmemory leak
0 likes · 13 min read
Root Cause Analysis of Excessive Native Memory Usage in a Spring Boot Application after Migrating to MDP Framework
Selected Java Interview Questions
Selected Java Interview Questions
Aug 31, 2024 · Backend Development

Root Cause Analysis of Excessive Swap Usage in a Spring Boot Project: Native Memory Leak Triggered by MCC Package Scanning

This article details a step‑by‑step investigation of a Spring Boot application that consumed far more physical memory than its 4 GB heap limit, revealing a native‑memory leak caused by MCC's package‑scanning using Reflections and the Spring Boot ZipInflaterInputStream, and explains how configuration changes and newer Spring Boot versions resolve the issue.

JVMJavaMCC
0 likes · 13 min read
Root Cause Analysis of Excessive Swap Usage in a Spring Boot Project: Native Memory Leak Triggered by MCC Package Scanning
Code Ape Tech Column
Code Ape Tech Column
Nov 3, 2023 · Backend Development

Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools

After migrating a project to the MDP framework based on Spring Boot, the author observed swap overuse and physical memory far exceeding the 4 GB heap; using JVM native memory tracking, gperftools, strace, pmap, and a custom allocator, they traced a native‑memory leak to Spring Boot’s ZipInflaterInputStream during JAR scanning and resolved it by limiting scan paths.

JVMJavaNative Memory
0 likes · 12 min read
Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools
Code Ape Tech Column
Code Ape Tech Column
Sep 21, 2022 · Backend Development

Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework

After migrating a project to the MDP framework based on Spring Boot, the system repeatedly reported high swap usage despite a 4 GB heap configuration, leading to an investigation that uncovered native memory consumption caused by unchecked JAR scanning and allocator behavior, which was resolved by limiting scan paths and updating Spring Boot's inflater implementation.

JVMNative MemorySpring Boot
0 likes · 12 min read
Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework
TAL Education Technology
TAL Education Technology
Jun 2, 2022 · Game Development

Unity Memory Management and Performance Optimization Guide

This article provides a comprehensive introduction to Unity memory concepts—including physical, virtual, native, and managed memory—and offers practical optimization techniques for native and managed resources, graphics rendering, and tooling to improve game performance on both desktop and mobile platforms.

Game DevelopmentManaged MemoryMemory Management
0 likes · 23 min read
Unity Memory Management and Performance Optimization Guide
Top Architect
Top Architect
May 10, 2022 · Backend Development

Diagnosing Excessive Swap Usage in a SpringBoot Project: Memory Profiling and Native Memory Analysis

The article details a step‑by‑step investigation of a SpringBoot application that repeatedly triggered high swap usage, describing how JVM parameters, native memory tracking, gperftools, strace, and custom memory allocators were used to pinpoint and resolve off‑heap memory leaks caused by the Inflater implementation and glibc memory pools.

JVMJavaNative Memory
0 likes · 12 min read
Diagnosing Excessive Swap Usage in a SpringBoot Project: Memory Profiling and Native Memory Analysis
Tencent Music Tech Team
Tencent Music Tech Team
Apr 23, 2021 · Mobile Development

Native Memory Analysis and Optimization in Android K歌 Application

The article details a thorough investigation of native‑memory crashes in the K歌 Android app, describing how memory usage was profiled, comparing three analysis tools, building a custom loli_profiler‑based hook to track malloc/free and bitmap allocations, exposing leaks, and outlining fixes and future optimization plans.

AndroidBitmapHooking
0 likes · 28 min read
Native Memory Analysis and Optimization in Android K歌 Application
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 21, 2021 · Fundamentals

Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory

This article explains Java 8's memory architecture, detailing the differences between JVM-managed memory and native memory, and describing each runtime data area—including the program counter, JVM stack, native method stack, heap, method area, and direct memory—along with common questions about variable storage and native methods.

HeapJavaMemory Management
0 likes · 13 min read
Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory
Tencent Music Tech Team
Tencent Music Tech Team
Mar 4, 2021 · Mobile Development

Analysis of Android Virtual Memory and Address Space in QQ Music/Karaoke App

The article explains Android virtual memory concepts, address space limits for 32‑ and 64‑bit apps, layout of QQ Music/Karaoke process memory, tools for inspecting /proc/pid/smaps, and shows how memory growth (e.g., loading libYTCommon.so) can cause 32‑bit apps to hit the 4 GB limit and crash.

AndroidMemory ManagementMobile Development
0 likes · 20 min read
Analysis of Android Virtual Memory and Address Space in QQ Music/Karaoke App
Architect's Tech Stack
Architect's Tech Stack
Feb 20, 2021 · Backend Development

Root Cause Analysis of High Native Memory Usage in a Spring Boot Application

After migrating a project to the MDP framework based on Spring Boot, the system repeatedly reported excessive swap usage; the investigation revealed that native memory allocated by the Spring Boot classloader’s Reflections scanning and InflaterInputStream caused 700 MB–800 MB of off‑heap memory to remain unreleased, which was eventually resolved by limiting the scan path and updating Spring Boot.

Native MemoryPerformance debuggingSpring Boot
0 likes · 12 min read
Root Cause Analysis of High Native Memory Usage in a Spring Boot Application
Tencent Music Tech Team
Tencent Music Tech Team
Feb 9, 2021 · Mobile Development

Comprehensive Memory Monitoring and Optimization Strategy for the K歌 Android Application

To eliminate the K歌 Android app’s frequent OOM crashes, a four‑stage framework was implemented—development self‑checks, automated testing baselines, gray‑release real‑time monitoring, and production continuous sampling—collecting virtual memory, Java heap, file‑descriptor, thread, and native‑heap metrics, feeding a backend platform that visualizes leaks, guides fixes, and has already resolved over 120 leaks, cutting crashes by more than 25 %.

AndroidMemory MonitoringNative Memory
0 likes · 23 min read
Comprehensive Memory Monitoring and Optimization Strategy for the K歌 Android Application
Architect
Architect
Aug 30, 2020 · Backend Development

Root Cause Analysis of Excessive Swap Memory Usage in a Spring Boot Application

The article details a step‑by‑step investigation of abnormal swap memory consumption in a Spring Boot project, revealing that native memory allocated by the Inflater during JAR scanning was not released promptly, leading to apparent memory leaks that were ultimately resolved by configuring package scanning and updating Spring Boot.

JavaNative MemoryPerformance debugging
0 likes · 12 min read
Root Cause Analysis of Excessive Swap Memory Usage in a Spring Boot Application
Watermelon Video Tech Team
Watermelon Video Tech Team
Aug 19, 2020 · Mobile Development

Analyzing Native Memory OOM in Android Camera Implementations and Effective Mitigation Strategies

This article investigates native memory out‑of‑memory crashes on certain Android devices caused by excessive CameraMetadata allocations, explains how delayed finalization and GC timing exacerbate the issue, and proposes proactive memory release and GC triggering techniques that dramatically reduce crash rates.

AndroidCameraGarbage Collection
0 likes · 13 min read
Analyzing Native Memory OOM in Android Camera Implementations and Effective Mitigation Strategies
Top Architect
Top Architect
Jul 29, 2020 · Backend Development

Investigation of Excessive Off‑Heap Memory Usage After Migrating a Spring Boot Project to the MDP Framework

The article details a step‑by‑step forensic analysis of why a Spring Boot application migrated to the MDP framework consumed far more physical memory than its configured 4 GB heap, uncovering off‑heap allocations caused by native code, package‑scanning, and glibc memory‑pool behavior, and explains how limiting scan paths or upgrading Spring Boot resolves the issue.

JVMMemory DebuggingNative Memory
0 likes · 12 min read
Investigation of Excessive Off‑Heap Memory Usage After Migrating a Spring Boot Project to the MDP Framework
Java Backend Technology
Java Backend Technology
Jul 7, 2020 · Backend Development

Why My Spring Boot App Swallowed 7 GB RAM: Uncovering Native Memory Leaks

After migrating a project to the MDP framework based on Spring Boot, the author observed excessive swap usage and physical memory consumption of 7 GB despite a 4 GB heap limit, and through a series of JVM, system, and native‑code diagnostics identified Spring Boot’s ZipInflaterInputStream native‑memory leak caused by unchecked package scanning.

JVMNative MemorySpring Boot
0 likes · 12 min read
Why My Spring Boot App Swallowed 7 GB RAM: Uncovering Native Memory Leaks
Architecture Digest
Architecture Digest
Jul 5, 2020 · Backend Development

Diagnosing Excessive Off‑Heap Memory Usage in a Spring Boot Application

The article details a step‑by‑step investigation of why a Spring Boot service migrated to the MDP framework consumed far more physical memory than its 4 GB heap, revealing native‑code allocations, memory‑pool behavior of glibc and tcmalloc, and how limiting MCC scan paths or upgrading Spring Boot resolves the off‑heap leak.

JavaNative MemoryOff-Heap Memory
0 likes · 11 min read
Diagnosing Excessive Off‑Heap Memory Usage in a Spring Boot Application
Programmer DD
Programmer DD
Jul 5, 2020 · Backend Development

Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks

The article details a step‑by‑step investigation of a Spring Boot application that unexpectedly used 7 GB of physical memory despite a 4 GB heap limit, revealing how native memory allocations, the Inflater class, and glibc memory pools caused off‑heap leaks and how proper configuration and library updates resolved the issue.

DebuggingJavaNative Memory
0 likes · 13 min read
Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks
Senior Brother's Insights
Senior Brother's Insights
Jun 3, 2020 · Backend Development

How We Traced and Fixed Excessive Native Memory Usage After Migrating to Spring Boot

After moving a project to Spring Boot, the system reported unusually high swap usage despite a 4 GB heap, prompting a detailed investigation using JVM native‑memory tracking, pmap, gperftools, strace, and GDB, which ultimately identified Spring Boot’s JAR scanning and glibc memory arenas as the root causes and led to a configuration fix and an upgrade to resolve the off‑heap memory leak.

JVMLinuxNative Memory
0 likes · 11 min read
How We Traced and Fixed Excessive Native Memory Usage After Migrating to Spring Boot
Architect's Tech Stack
Architect's Tech Stack
Mar 31, 2020 · Backend Development

Investigation of Excessive Native Memory Usage in a Spring Boot Application

This article details a step‑by‑step investigation of unusually high native memory consumption in a Spring Boot service, covering JVM configuration, system‑level diagnostics with jcmd, pmap, gperftools, strace, GDB, and jstack, and explains how the MCC component’s default package scanning caused the leak and how configuring scan paths or upgrading Spring Boot resolved the issue.

JVMLinux toolsNative Memory
0 likes · 11 min read
Investigation of Excessive Native Memory Usage in a Spring Boot Application
Programmer DD
Programmer DD
Mar 29, 2020 · Backend Development

Why Your Spring Boot App Consumes 7 GB RAM: Uncovering Native Memory Leaks

A Spring Boot project migrated to the MDP framework exhibited excessive native memory usage, leading to swap errors; the article details step‑by‑step investigation using JVM tools, system utilities, and custom allocators to pinpoint and resolve the hidden native memory leak caused by unchecked JAR scanning and glibc memory pools.

JavaNative MemorySpring Boot
0 likes · 13 min read
Why Your Spring Boot App Consumes 7 GB RAM: Uncovering Native Memory Leaks
Programmer DD
Programmer DD
Jan 7, 2019 · Backend Development

Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks

This article walks through a real‑world investigation of excessive native memory usage in a Spring Boot application, detailing JVM settings, Linux‑level tracing, custom memory allocators, and the root cause in Spring Boot’s ZipInflaterInputStream, ultimately providing a fix and best‑practice recommendations.

JVMLinux tracingNative Memory
0 likes · 11 min read
Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks
Meituan Technology Team
Meituan Technology Team
Jan 3, 2019 · Backend Development

Investigation of Excessive Native Memory Usage After Migrating to Spring Boot

After moving to Spring Boot, the application consumed up to 7 GB of native memory because Meituan’s MCC package scanner invoked Spring’s ZipInflaterInputStream, which allocated large off‑heap buffers during JAR decompression that were only freed by the JVM finalizer and retained by glibc’s 64 MB arenas; restricting the scan scope or upgrading to Spring Boot 2.0.5 eliminated the excess usage.

JVMNative MemoryPerformance debugging
0 likes · 13 min read
Investigation of Excessive Native Memory Usage After Migrating to Spring Boot