Tag

Native Memory

1 views collected around this technical thread.

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.

JavaMemory LeakNative Memory
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.

JVMJavaMemory Leak
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.

JVMMemory LeakNative Memory
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.

Managed MemoryMemory ManagementNative Memory
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.

JVMJavaMemory Profiling
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
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.

JavaMemory LeakNative Memory
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 %.

AndroidNative MemoryPerformance Optimization
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.

JavaMemory LeakNative Memory
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
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.

JavaMemory LeakNative Memory
0 likes · 11 min read
Diagnosing Excessive Off‑Heap Memory Usage in a Spring Boot Application
Top Architect
Top Architect
Apr 20, 2020 · Backend Development

Diagnosing and Resolving Native Memory Leak in Spring Boot Applications

This article details a step‑by‑step investigation of excessive native memory usage in a Spring Boot service, explaining how JVM tools, system tracers, and custom allocators revealed that the default MCC package scanner and Inflater implementation caused a hidden memory leak that was fixed by configuring scan paths and upgrading Spring Boot.

JVMLinuxMemory Leak
0 likes · 12 min read
Diagnosing and Resolving Native Memory Leak in Spring Boot Applications
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 toolsMemory Leak
0 likes · 11 min read
Investigation of Excessive Native Memory Usage in a Spring Boot Application