Tagged articles
121 articles
Page 1 of 2
IT Services Circle
IT Services Circle
May 19, 2026 · Fundamentals

Can a Single String Constant Crash the Go Compiler with OOM?

A Go compiler issue shows that an exponentially growing string constant can exhaust memory during compilation, causing an out‑of‑memory crash, and the article explains how the constant is built, why it differs from variables, historical related bugs, the core team's mitigation plans, and practical safeguards for code generators and online compilers.

GoOOMcode-generation
0 likes · 10 min read
Can a Single String Constant Crash the Go Compiler with OOM?
dbaplus Community
dbaplus Community
May 17, 2026 · Databases

Is Raising work_mem from 4 MB to 64 MB Really Optimizing Sorts? The 2 TB PostgreSQL OOM Time Bomb

The article explains why increasing PostgreSQL's work_mem does not guarantee per‑query memory limits, how multiple sort/hash nodes, parallel workers and long‑lived memory contexts can cause OOM even on a 2 TB server, and offers concrete diagnostics and mitigation strategies for DBAs and developers.

Memory ManagementOOMconcurrency
0 likes · 12 min read
Is Raising work_mem from 4 MB to 64 MB Really Optimizing Sorts? The 2 TB PostgreSQL OOM Time Bomb
Deepin Linux
Deepin Linux
May 6, 2026 · Fundamentals

Master Linux Memory Performance: From Theory to Real‑World Optimization

This article systematically breaks down Linux's core memory mechanisms, identifies common performance bottlenecks, and demonstrates how to use tools like numastat, perf, and Valgrind together with kernel parameters such as swappiness and min_free_kbytes to achieve practical memory optimizations.

LinuxMemoryNUMA
0 likes · 55 min read
Master Linux Memory Performance: From Theory to Real‑World Optimization
Java Web Project
Java Web Project
Apr 16, 2026 · Backend Development

How I Resolved a 13‑Hour OOM Nightmare in a Spring Boot Service

The article walks through a 13‑hour out‑of‑memory incident on a Spring Boot 2.7 service running in Kubernetes, detailing how to preserve the crash dump, interpret GC logs, use MAT and Arthas to pinpoint a static HashMap leak, and apply both temporary and permanent fixes while hardening the system for future safety.

ArthasJVMKubernetes
0 likes · 18 min read
How I Resolved a 13‑Hour OOM Nightmare in a Spring Boot Service
Architecture & Thinking
Architecture & Thinking
Mar 11, 2026 · Fundamentals

Unlocking the JVM: From Bytecode to Memory Model and Performance Tuning

This article explains how Java source files are compiled into bytecode, details the JVM's class loading lifecycle, describes the hierarchical class loader delegation model, and breaks down the runtime data areas—including stack, heap, and metaspace—while offering practical tuning tips to avoid common OOM issues.

Java Memory ModelOOMclass loading
0 likes · 13 min read
Unlocking the JVM: From Bytecode to Memory Model and Performance Tuning
Full-Stack DevOps & Kubernetes
Full-Stack DevOps & Kubernetes
Feb 22, 2026 · Cloud Native

How to Stabilize Java Services on Kubernetes: A 3‑Year Success Story

This article walks through a real‑world Java service on Kubernetes, detailing the initial confidence, recurring OOM and rollout issues, and a multi‑round remediation that introduced container‑aware JVM settings, refined resource requests, OOM dumps, probes, and metrics, ultimately achieving three years of stable operation with lower resource usage.

Cloud NativeJVMKubernetes
0 likes · 10 min read
How to Stabilize Java Services on Kubernetes: A 3‑Year Success Story
MaGe Linux Operations
MaGe Linux Operations
Dec 26, 2025 · Operations

Taming vLLM OOM: Real‑World Causes and Proven Fixes for Production

This article examines why vLLM experiences out‑of‑memory errors in production, explains memory fragmentation caused by PagedAttention, outlines four typical OOM scenarios with concrete command‑line solutions, and provides deep analysis, configuration scripts, dynamic tuning, troubleshooting flowcharts, monitoring alerts, and best‑practice recommendations.

DeploymentGPUMemory Fragmentation
0 likes · 24 min read
Taming vLLM OOM: Real‑World Causes and Proven Fixes for Production
Tech Freedom Circle
Tech Freedom Circle
Dec 14, 2025 · Interview Experience

Interview Is Acting: Must‑Know Answers to Ace Every Question

This comprehensive guide turns interview preparation into a performance, offering a step‑by‑step "now‑past‑future" script for self‑introductions, STAR‑based storytelling for challenging projects, concrete Java OOM troubleshooting examples, and proven tactics for answering why you left, strengths, pressure handling, and salary expectations.

OOMSTARcareer
0 likes · 28 min read
Interview Is Acting: Must‑Know Answers to Ace Every Question
Deepin Linux
Deepin Linux
Dec 14, 2025 · Fundamentals

Why Linux Kernel Memory Layout Is the Hidden Key to Preventing OOM Crashes

This article reveals how Linux kernel memory layout—its partitions, address allocation, and resource scheduling—directly impacts system stability, explains the roles of each memory region, demonstrates common pitfalls like fragmentation and dentry leaks, and provides practical debugging and optimization techniques for developers and operators.

Kernel MemoryLinuxMemory Management
0 likes · 60 min read
Why Linux Kernel Memory Layout Is the Hidden Key to Preventing OOM Crashes
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 1, 2025 · Operations

How to Uncover Hidden Java Memory Leaks in Kubernetes Pods with Alibaba Cloud OS Console

When migrating automotive workloads to cloud-native containers, unexpected OOMKilled pods often hide a large amount of Java memory consumption caused by JNI, libc, and Transparent Huge Pages, which can be identified and resolved using the Alibaba Cloud OS Console's memory panorama analysis and hotspot tracing features.

Alibaba CloudJNIKubernetes
0 likes · 11 min read
How to Uncover Hidden Java Memory Leaks in Kubernetes Pods with Alibaba Cloud OS Console
Linux Kernel Journey
Linux Kernel Journey
Oct 27, 2025 · Fundamentals

Exploring eBPF‑Based Programmable Memory Management in the Linux Kernel

This article examines recent efforts to make Linux kernel memory management programmable with eBPF, covering BPF‑MM patches for mTHP order, cache‑ext’s customizable LRU, FetchBPF prefetch policies, and BPF OOM hooks, and discusses their design, implementation details, and performance impacts.

LRULinux kernelMemory Management
0 likes · 8 min read
Exploring eBPF‑Based Programmable Memory Management in the Linux Kernel
Deepin Linux
Deepin Linux
May 1, 2025 · Fundamentals

Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux

This article explains how memory works as a temporary storage stage for processes, describes the fundamentals of physical and virtual memory, details paging, page tables, multi‑level paging, allocation mechanisms such as brk() and mmap(), and outlines Linux memory‑management techniques including caching, swapping, and OOM handling.

MMUMemory ManagementOOM
0 likes · 33 min read
Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux
Ops Development Stories
Ops Development Stories
Feb 6, 2025 · Cloud Native

Automate Java OOM Heapdump Collection with a Kubernetes DaemonSet

This guide explains how to automatically capture Java OOM heapdump files using a DaemonSet that watches for heapdump.prof creation, compresses and uploads them to Alibaba Cloud OSS, and notifies developers via a WeChat bot, providing a scalable, non‑intrusive solution for memory‑leak diagnostics in Kubernetes environments.

GoOOMcloud-native
0 likes · 19 min read
Automate Java OOM Heapdump Collection with a Kubernetes DaemonSet
ITPUB
ITPUB
Nov 1, 2024 · Backend Development

Why Our Nginx Data Gateway OOM’d: Tracing Memory Spikes & Core Dumps

An Nginx‑based data collection gateway began crashing with OOM kills, prompting a detailed investigation that uncovered memory spikes caused by aggressive batch processing, oversized protobuf payloads, and insufficient memory‑pool management, leading to a custom core‑dump solution and several mitigation strategies.

Batch ProcessingOOMProtobuf
0 likes · 16 min read
Why Our Nginx Data Gateway OOM’d: Tracing Memory Spikes & Core Dumps
Java Architecture Stack
Java Architecture Stack
Oct 18, 2024 · Big Data

How to Fix Spark OOM Errors: Practical Memory & Performance Tuning

This guide analyzes common Spark Out‑Of‑Memory scenarios—such as massive data volumes, data skew, and improper resource allocation—and provides step‑by‑step configurations, memory‑management tweaks, partitioning strategies, and shuffle optimizations to prevent OOM failures in production.

Big DataMemory TuningOOM
0 likes · 8 min read
How to Fix Spark OOM Errors: Practical Memory & Performance Tuning
Su San Talks Tech
Su San Talks Tech
Aug 14, 2024 · Operations

How to Diagnose and Fix the 8 Most Common Production Issues

This article outlines practical troubleshooting steps for eight frequent production problems—including OOM, CPU spikes, interface timeouts, index failures, deadlocks, disk issues, MQ backlogs, and API errors—providing clear guidance and code snippets to help engineers quickly identify root causes and resolve them.

APICPUMQ
0 likes · 14 min read
How to Diagnose and Fix the 8 Most Common Production Issues
Liangxu Linux
Liangxu Linux
Jun 11, 2024 · Fundamentals

Why OTA Updates Trigger Device Reboots and How to Fix OOM Crashes

This article explains OTA update mechanisms, analyzes why over‑the‑air upgrades cause frequent device reboots due to OOM‑killer and memory fragmentation, and provides concrete steps to disable panic_on_oom and adjust CMA settings to prevent crashes.

CMADevice RebootEmbedded Linux
0 likes · 5 min read
Why OTA Updates Trigger Device Reboots and How to Fix OOM Crashes
Huolala Tech
Huolala Tech
May 14, 2024 · Mobile Development

How We Reduced Android OOM Crashes by 99%: Mobile Memory Optimization Secrets

Over the past six months we tackled severe Android memory issues—high OOM crash rates, memory leaks, and large object usage—by implementing systematic profiling, targeted page optimizations, Java and native leak detection tools, and robust monitoring mechanisms, ultimately reducing OOM crashes from 0.8‰ to 0.01‰ and improving app stability.

AndroidMemory ManagementOOM
0 likes · 26 min read
How We Reduced Android OOM Crashes by 99%: Mobile Memory Optimization Secrets
MaGe Linux Operations
MaGe Linux Operations
Mar 2, 2024 · Operations

How to Diagnose and Fix Constant Kubernetes Pod Restarts (OOM)

When a Kubernetes pod repeatedly restarts, you can pinpoint the cause by inspecting events, describing the pod, and checking previous logs, then identify OOM kills caused by memory limits in the deployment.yaml and resolve it by increasing the memory limit and redeploying the pod.

KubernetesMemory LimitsOOM
0 likes · 3 min read
How to Diagnose and Fix Constant Kubernetes Pod Restarts (OOM)
OPPO Amber Lab
OPPO Amber Lab
Dec 29, 2023 · Information Security

Uncovering Android Malicious Anti‑Kill Vulnerabilities in Foreground Services

This article explains how Android malicious anti‑kill techniques exploit foreground services to keep processes alive, outlines the Low Memory Killer mechanism, details process priority values, presents real CVE examples, and offers mitigation strategies for developers and security researchers.

AndroidAnti‑KillForeground Service
0 likes · 9 min read
Uncovering Android Malicious Anti‑Kill Vulnerabilities in Foreground Services
Java Architect Essentials
Java Architect Essentials
Nov 27, 2023 · Backend Development

Analyzing and Resolving OutOfMemoryError in Java MyBatis Applications

This article examines the frequent OutOfMemoryError incidents in a Java backend service, explains the underlying heap and metaspace causes, analyzes MyBatis source code that leads to memory leaks, demonstrates a reproducible scenario, and offers practical optimization recommendations to prevent OOM in production.

OOMmemory-leak
0 likes · 6 min read
Analyzing and Resolving OutOfMemoryError in Java MyBatis Applications
Tencent Music Tech Team
Tencent Music Tech Team
Oct 20, 2023 · Mobile Development

Root Cause Analysis of OOM Crash in iOS Karaoke App Caused by Swizzled NSMutableArray Protection

An OOM crash in the K‑song iOS karaoke app was traced to a configuration that swizzled several NSMutableArray methods, causing each observer lookup to autorelease objects, rapidly filling autorelease‑pool pages and exhausting memory; converting the protection code to manual reference counting eliminated the leak and stopped the crashes.

AutoreleasePoolOOMObjective‑C
0 likes · 21 min read
Root Cause Analysis of OOM Crash in iOS Karaoke App Caused by Swizzled NSMutableArray Protection
iQIYI Technical Product Team
iQIYI Technical Product Team
Aug 11, 2023 · Artificial Intelligence

Debugging Random OOM Issues in PyTorch Distributed Training on A100 Clusters

The iQIYI backend team traced random OOM crashes in PyTorch Distributed Data Parallel on an A100 cluster to a malformed DDP message injected by a security scan, which forced a near‑terabyte allocation; using jemalloc for diagnostics, they mitigated the issue by adjusting scan policies and collaborating with PyTorch to harden the protocol.

Distributed TrainingMemory DebuggingOOM
0 likes · 9 min read
Debugging Random OOM Issues in PyTorch Distributed Training on A100 Clusters
Efficient Ops
Efficient Ops
Jul 11, 2023 · Operations

Why Did Our kube-apiserver OOM? A Deep Dive into Kubernetes Control-Plane Failures

This article details a real-world Kubernetes control‑plane outage where kube‑apiserver repeatedly OOM‑killed, explores cluster metrics, logs, heap and goroutine profiles, hypothesizes root causes such as etcd latency and DeleteCollection memory leaks, and offers step‑by‑step troubleshooting and prevention guidance.

OOMetcdkube-apiserver
0 likes · 21 min read
Why Did Our kube-apiserver OOM? A Deep Dive into Kubernetes Control-Plane Failures
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Jun 6, 2023 · Operations

Root Cause Analysis and GC Parameter Optimization for Elasticsearch OOM Issues in the Membership Service

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.

BackendElasticsearchOOM
0 likes · 9 min read
Root Cause Analysis and GC Parameter Optimization for Elasticsearch OOM Issues in the Membership Service
MaGe Linux Operations
MaGe Linux Operations
Feb 10, 2023 · Cloud Native

How to Detect and Prevent OOM and CPU Throttling in Kubernetes Pods

This article explains why Kubernetes pods encounter out‑of‑memory errors and CPU throttling, how limits and requests influence resource allocation, and provides practical monitoring techniques using Prometheus and cAdvisor to proactively identify and mitigate these issues before they impact performance or cause pod eviction.

CPU throttlingOOMcAdvisor
0 likes · 9 min read
How to Detect and Prevent OOM and CPU Throttling in Kubernetes Pods
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 6, 2023 · Mobile Development

Memory Monitoring and Leak Detection Practices in NetEase Cloud Music Android App

The NetEase Cloud Music Android team built a comprehensive memory‑monitoring system—combining LeakCanary and KOOM for leak detection, instrumented image loading for large‑bitmap tracking, periodic heap and thread metrics collection, and automated ticket generation—to identify, rank, and resolve leaks, oversized resources, and thread‑related OOM risks across development and production.

AndroidKOOMLeakCanary
0 likes · 15 min read
Memory Monitoring and Leak Detection Practices in NetEase Cloud Music Android App
Tencent Database Technology
Tencent Database Technology
Jan 31, 2023 · Databases

Common MySQL OOM Scenarios and TDSQL‑C Memory Optimization Strategies

This article examines typical MySQL out‑of‑memory (OOM) situations in production, explains how to diagnose memory usage with Performance Schema and other tools, and presents a series of TDSQL‑C‑specific optimization techniques—including server‑parameter tuning, process‑list monitoring, cold‑page detection, buffer‑pool limits, and dynamic resizing—to mitigate OOM risks.

Database PerformanceMemory OptimizationOOM
0 likes · 12 min read
Common MySQL OOM Scenarios and TDSQL‑C Memory Optimization Strategies
Qunar Tech Salon
Qunar Tech Salon
Jan 31, 2023 · Operations

Root Cause Analysis and Mitigation of JVM GC‑Induced OOM and Memory Fragmentation in a Containerized Hotel Pricing Service

This article details how long JVM garbage‑collection pauses and glibc ptmalloc memory‑fragmentation caused container OOM kills in a hotel‑pricing system, and explains the step‑by‑step diagnosis, JVM tuning, Kubernetes health‑check adjustments, and the replacement of ptmalloc with jemalloc to eliminate the issue.

JVMKubernetesMemoryFragmentation
0 likes · 9 min read
Root Cause Analysis and Mitigation of JVM GC‑Induced OOM and Memory Fragmentation in a Containerized Hotel Pricing Service
Su San Talks Tech
Su San Talks Tech
Jan 26, 2023 · Backend Development

How MemorySafeLBQ Prevents OOM in Java Thread Pools: A Deep Dive

This article examines the MemoryLimitedLBQ and MemorySafeLBQ implementations, explains how they use memory‑limiting techniques to avoid Out‑Of‑Memory errors in unbounded LinkedBlockingQueue‑based thread pools, compares their designs, and shows practical code snippets for integrating them into Java projects.

MemoryManagementOOMOpenSource
0 likes · 13 min read
How MemorySafeLBQ Prevents OOM in Java Thread Pools: A Deep Dive
Alibaba Cloud Native
Alibaba Cloud Native
Jan 14, 2023 · Cloud Native

Why Java Apps OOM in Kubernetes Even Below Xmx and How to Fix It

This article explains why Java applications running in Kubernetes can encounter Out‑Of‑Memory errors despite heap usage staying under the Xmx limit, by examining container resource limits, JVM memory models, cgroup behavior, and provides practical configuration recommendations to prevent OOM.

Cloud NativeJVMKubernetes
0 likes · 16 min read
Why Java Apps OOM in Kubernetes Even Below Xmx and How to Fix It
Dada Group Technology
Dada Group Technology
Oct 28, 2022 · Mobile Development

iOS Memory Management, OOM Causes, and Leak Monitoring Strategies

This article explains iOS memory architecture, the reasons behind Out‑of‑Memory (OOM) crashes, common sources of memory pressure, and practical approaches—including MLeaksFinder and FBRetainCycleDetector—to monitor, detect, and mitigate memory leaks and abnormal memory growth in iOS applications.

Memory ManagementMobile DevelopmentOOM
0 likes · 17 min read
iOS Memory Management, OOM Causes, and Leak Monitoring Strategies
Open Source Linux
Open Source Linux
Oct 14, 2022 · Cloud Native

Why Did Our kube-apiserver OOM? A Deep Dive into Kubernetes Control‑Plane Failures

On September 10 2021, a Kubernetes cluster experienced intermittent kubectl hangs caused by kube-apiserver OOM kills, leading to cascading control-plane failures; this article details the environment, observed metrics, log analysis, code inspection of DeleteCollection, and provides troubleshooting steps to prevent similar incidents.

OOMcloud-nativeetcd
0 likes · 21 min read
Why Did Our kube-apiserver OOM? A Deep Dive into Kubernetes Control‑Plane Failures
Su San Talks Tech
Su San Talks Tech
Oct 10, 2022 · Backend Development

How a Massive Excel Import Triggered OOM in Our MQ Consumer—and the Fix

This article walks through a real‑world OOM incident in an MQ consumer caused by large Excel import/export, explains how memory dumps and Prometheus logs pinpointed the culprit, and shows how switching from XSSFWorkbook to SXSSFWorkbook and tuning the thread pool resolved the issue.

Apache POIMemory analysisOOM
0 likes · 9 min read
How a Massive Excel Import Triggered OOM in Our MQ Consumer—and the Fix
Cognitive Technology Team
Cognitive Technology Team
Sep 12, 2022 · Fundamentals

Avoiding Memory Leaks with Java Double‑Brace Initialization and Anonymous Inner Classes

This article explains Java's double‑brace initialization trick, shows how it creates anonymous inner classes, demonstrates the resulting memory‑leak and OOM risks, especially with non‑static inner classes, and provides guidelines such as using static inner classes or weak references to avoid these problems.

Anonymous Inner ClassOOMdouble-brace-initialization
0 likes · 7 min read
Avoiding Memory Leaks with Java Double‑Brace Initialization and Anonymous Inner Classes
Inke Technology
Inke Technology
Aug 25, 2022 · Mobile Development

Mastering iOS Crash Handling, OOM Monitoring, and Memory Profiling

This article explains the iOS system architecture, how Mach and BSD layers handle exceptions, the mechanisms for collecting crashes with KSCrash, strategies for OOM detection and monitoring, and techniques for memory snapshotting and reference‑graph analysis to pinpoint memory bloat.

Crash HandlingKSCrashOOM
0 likes · 21 min read
Mastering iOS Crash Handling, OOM Monitoring, and Memory Profiling
Efficient Ops
Efficient Ops
Aug 9, 2022 · Operations

Why Did kube-apiserver OOM? A Deep Dive into Kubernetes Control-Plane Failures

This article analyzes a September 2021 incident where a Kubernetes cluster’s kube-apiserver repeatedly OOM-killed, causing kubectl hangs, by examining cluster specs, monitoring data, logs, heap and goroutine profiles, and the DeleteCollection implementation, ultimately offering troubleshooting steps and preventive measures for control-plane stability.

GoroutineOOMcloud-native
0 likes · 20 min read
Why Did kube-apiserver OOM? A Deep Dive into Kubernetes Control-Plane Failures
Top Architect
Top Architect
Jul 22, 2022 · Backend Development

Understanding ExecutorCompletionService: Root Cause Analysis and Best Practices

This article analyzes a production outage caused by misuse of ExecutorCompletionService, explains the underlying Java concurrency mechanisms, compares it with ExecutorService, provides correct code examples, and offers practical guidelines to avoid memory leaks and improve backend reliability.

ExecutorCompletionServiceOOMThreadPool
0 likes · 12 min read
Understanding ExecutorCompletionService: Root Cause Analysis and Best Practices
Baidu Geek Talk
Baidu Geek Talk
Jul 13, 2022 · Mobile Development

Baidu APP Large Memory Allocation Monitoring Solution for iOS

Baidu’s iOS solution monitors single memory allocations exceeding an 8 MB threshold by intercepting malloc_logger and capturing stack traces with backtrace, merging online user‑scenario data and offline pipelines to identify large‑allocation hotspots, reduce OOM crashes, and give developers actionable debugging insight.

Memory MonitoringOOMbacktrace
0 likes · 13 min read
Baidu APP Large Memory Allocation Monitoring Solution for iOS
Baidu App Technology
Baidu App Technology
Jul 12, 2022 · Mobile Development

Large Memory Allocation Monitoring Solution for iOS Applications

A low‑overhead monitoring solution for iOS apps resets the global malloc_logger to capture every allocation, filters large allocations exceeding a configurable threshold, records lightweight stack traces using dyld image maps, and sends address‑only data for offline symbolication, enabling developers to identify and fix memory‑heavy code, reducing OOM crashes.

Memory MonitoringMobile DevelopmentOOM
0 likes · 14 min read
Large Memory Allocation Monitoring Solution for iOS Applications
Cognitive Technology Team
Cognitive Technology Team
Jul 9, 2022 · Backend Development

Avoiding OOM When Using java.util.concurrent.ExecutorCompletionService

The article explains how submitting tasks to ExecutorCompletionService without retrieving their results causes the internal unbounded LinkedBlockingQueue to retain Future objects, leading to memory leaks and OutOfMemoryError, and demonstrates the correct usage patterns to prevent this issue.

ExecutorCompletionServiceMemoryLeakOOM
0 likes · 6 min read
Avoiding OOM When Using java.util.concurrent.ExecutorCompletionService
Cognitive Technology Team
Cognitive Technology Team
Jun 26, 2022 · Backend Development

AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide

The article explains how AsyncAppender uses a BlockingQueue with a default size of 256, how an oversized queue can cause OOM, how the discardingThreshold can lead to loss of TRACE/DEBUG/INFO logs, and provides configuration tips such as adjusting queueSize, setting discardingThreshold to zero, or enabling neverBlock to avoid blocking.

AsyncAppenderBlockingQueueOOM
0 likes · 5 min read
AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide
Liangxu Linux
Liangxu Linux
Jun 22, 2022 · Fundamentals

Understanding Linux Memory Management: From Process Allocation to OOM and Cache

This article provides a comprehensive walkthrough of Linux kernel memory management, covering process address space layout, memory allocation mechanisms, OOM selection criteria, where allocated memory resides, and both manual and automatic memory reclamation techniques, complete with code examples and diagrams.

CacheLinuxMemory Management
0 likes · 20 min read
Understanding Linux Memory Management: From Process Allocation to OOM and Cache
Programmer DD
Programmer DD
May 21, 2022 · Mobile Development

Mastering Android OOM: Thread, File, and Memory Leak Solutions

This technical guide explores Android out‑of‑memory crashes by classifying OOM into thread‑count, file‑descriptor, and heap‑memory issues, then details non‑intrusive thread and thread‑pool optimizations, file‑descriptor and I/O monitoring, image compression strategies, and both Java and native memory‑leak detection techniques.

AndroidOOMPerformance Monitoring
0 likes · 28 min read
Mastering Android OOM: Thread, File, and Memory Leak Solutions
Top Architect
Top Architect
May 10, 2022 · Mobile Development

Comprehensive Guide to OOM Issues, Thread Optimization, and Memory Leak Monitoring in Android Apps

This article explains the root causes of Out‑Of‑Memory (OOM) crashes on Android, classifies OOM types, and provides practical, non‑intrusive solutions for thread‑count, file‑descriptor, and heap‑memory problems, along with monitoring techniques using thread pools, image compression, LeakCanary, KOOM and native hooks.

AndroidMemoryLeakMobileDev
0 likes · 23 min read
Comprehensive Guide to OOM Issues, Thread Optimization, and Memory Leak Monitoring in Android Apps
ITPUB
ITPUB
Jan 27, 2022 · Fundamentals

Why Does Linux Need Complex Memory Management? Inside Virtual Memory, malloc, and OOM

This article explains the reasons behind Linux's sophisticated memory management, covering virtual memory mechanisms, page tables, MMU/TLB interactions, page fault handling, the layout of a process's address space, glibc's malloc internals, memory reclamation techniques, and the OOM killer's decision process.

LinuxOOMVirtual Memory
0 likes · 33 min read
Why Does Linux Need Complex Memory Management? Inside Virtual Memory, malloc, and OOM
G7 EasyFlow Tech Circle
G7 EasyFlow Tech Circle
Dec 30, 2021 · Cloud Native

Why Kubernetes OOM Kills Use WSS, Not RSS – Diagnose & Fix Container Memory

After moving IoT services to Kubernetes, containers were OOM‑killed despite RSS staying below limits because Kubernetes bases OOM decisions on the Working Set Size (WSS) metric, which includes file cache, and the article explains its calculation, reproduces the issue, and offers practical mitigation strategies.

Cache ManagementContainer MemoryKernel Parameters
0 likes · 12 min read
Why Kubernetes OOM Kills Use WSS, Not RSS – Diagnose & Fix Container Memory
Sohu Tech Products
Sohu Tech Products
Oct 6, 2021 · Mobile Development

Android Memory Optimization: Causes, Tools, Image Strategies, and Online OOM Monitoring with KOOM

This article explains why Android memory optimization is needed, introduces background concepts such as garbage collection and memory leaks, reviews common tools like Memory Profiler, MAT and LeakCanary, details image‑related memory reduction techniques, and presents the open‑source KOOM framework for online OOM detection and analysis.

AndroidKOOMLeakCanary
0 likes · 23 min read
Android Memory Optimization: Causes, Tools, Image Strategies, and Online OOM Monitoring with KOOM
Efficient Ops
Efficient Ops
Sep 27, 2021 · Fundamentals

How Linux Kernel Manages Memory: Allocation, OOM, and Recovery

This article explains Linux kernel memory management by covering process address space layout, allocation mechanisms, OOM killer behavior, overcommit settings, various types of file and anonymous mappings, tmpfs usage, and both manual and automatic memory reclamation techniques.

LinuxMemory ManagementOOM
0 likes · 20 min read
How Linux Kernel Manages Memory: Allocation, OOM, and Recovery
Node Underground
Node Underground
Sep 11, 2021 · Backend Development

Why Node.js vm Triggers OOM in V8: Hidden Compilation Cache Pitfalls

This article explains how frequent use of Node.js's vm module can cause out‑of‑memory crashes in V8 due to an uncollected compilation cache, the role of the --always‑promote‑young‑mc flag, and practical work‑arounds for Node.js 12, 14 and 16.

Compilation CacheGarbage CollectionNode.js
0 likes · 16 min read
Why Node.js vm Triggers OOM in V8: Hidden Compilation Cache Pitfalls
JavaEdge
JavaEdge
May 16, 2021 · Backend Development

Why Your Java ThreadPool May Crash with OOM and How to Prevent It

This article explains the purpose and design of Java thread pools, illustrates common pitfalls such as unbounded queues causing OutOfMemoryError, and provides practical guidelines for configuring bounded queues, naming threads, handling exceptions, choosing rejection policies, and using separate pools for compute‑intensive tasks.

ExecutorOOMThreadPool
0 likes · 12 min read
Why Your Java ThreadPool May Crash with OOM and How to Prevent It
Amap Tech
Amap Tech
Jan 22, 2021 · Mobile Development

Memory Management and Optimization Strategies for Gaode Map Mobile Application

To prevent iOS OOM kills in Gaode Map, developers analyzed Jetsam‑driven physical‑footprint data, identified IOKit, WebKit Malloc, and malloc‑heap as primary consumers, applied graphics texture trimming, shared JavaScriptCore contexts, hooked allocation APIs, and implemented adaptive resource management, achieving roughly 50 % memory reduction and lower crash rates.

Gaode MapJetsamMemory Management
0 likes · 14 min read
Memory Management and Optimization Strategies for Gaode Map Mobile Application
Xianyu Technology
Xianyu Technology
Dec 24, 2020 · Backend Development

Root Cause Analysis of Metaspace OOM Triggered by Arthas Trace

Tracing a large method with Arthas caused a Metaspace OOM because constant‑pool rewrites inflated the Non‑Class space, each rewrite copying a massive StackMapTable, but preserving the original constant‑pool layout in Arthas stops the growth, and exposing off‑heap metrics aids production monitoring.

ArthasJVMMetaspace
0 likes · 20 min read
Root Cause Analysis of Metaspace OOM Triggered by Arthas Trace
Watermelon Video Tech Team
Watermelon Video Tech Team
Dec 14, 2020 · Mobile Development

Tailor: An Open‑Source Android Memory Snapshot Trimming and Compression Tool for OOM Governance

Tailor is an open‑source Android memory‑snapshot trimming and compression tool developed by the Xigua Video team that dramatically reduces OOM occurrences by over 95% through efficient snapshot cropping, zlib compression, and seamless integration with the dump process, while preserving essential debugging information.

AndroidHprofMemory Management
0 likes · 17 min read
Tailor: An Open‑Source Android Memory Snapshot Trimming and Compression Tool for OOM Governance
JavaEdge
JavaEdge
Nov 10, 2020 · Backend Development

Why Repeated Custom ThreadPools Trigger Java OOM and How to Fix It

Creating a new ThreadPoolExecutor with 10 core threads, 50 maximum threads, and a 2‑second keep‑alive for each request prevents core threads from being reclaimed, quickly exhausting native thread resources and causing an OutOfMemoryError.

OOMThreadPoolThreadPoolExecutor
0 likes · 2 min read
Why Repeated Custom ThreadPools Trigger Java OOM and How to Fix It
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
Tencent Database Technology
Tencent Database Technology
Aug 4, 2020 · Databases

Root Cause Analysis of MySQL OOM in Tencent Cloud CDB Instances

This article details a comprehensive investigation of MySQL out‑of‑memory (OOM) alerts on a Tencent Cloud CDB instance during a high‑traffic marketing event, covering background, observed symptoms, step‑by‑step debugging, analysis of server and engine memory usage, relevant MySQL bugs, fetch_cache behavior, and the final configuration recommendations to prevent OOM.

Database OptimizationOOMPerformance Schema
0 likes · 14 min read
Root Cause Analysis of MySQL OOM in Tencent Cloud CDB Instances
Selected Java Interview Questions
Selected Java Interview Questions
Jun 26, 2020 · Backend Development

Why Executors Should Not Be Used to Create Thread Pools and How to Properly Configure ThreadPoolExecutor in Java

This article explains the definition of thread pools, why using Executors to create them is discouraged, details the ThreadPoolExecutor constructor and its parameters, compares different Executors factory methods, demonstrates OOM testing, and provides practical guidelines for defining safe thread‑pool parameters in Java.

ExecutorsOOMThreadPoolExecutor
0 likes · 13 min read
Why Executors Should Not Be Used to Create Thread Pools and How to Properly Configure ThreadPoolExecutor in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 25, 2020 · Backend Development

Root Cause Analysis of OOM Caused by Misused HttpClient evictExpiredConnections and Keep‑Alive Issues

The article recounts a production OOM incident triggered by a misconfigured HttpClient evictExpiredConnections setting that caused uncontrolled thread growth, explains the underlying keep‑alive TCP behavior and NoHttpResponseException, and presents the corrective measures of using a singleton HttpClient and proper connection‑pool monitoring.

BackendHttpClientKeep-Alive
0 likes · 8 min read
Root Cause Analysis of OOM Caused by Misused HttpClient evictExpiredConnections and Keep‑Alive Issues
21CTO
21CTO
May 18, 2020 · Backend Development

Why You Should Avoid Executors and Build ThreadPoolExecutor Manually in Java

This article explains the definition of thread pools, why using Executors to create them is discouraged, details the ThreadPoolExecutor constructor and its parameters, compares different Executors factory methods, demonstrates OOM risks with tests, and provides practical guidelines for configuring safe thread pools.

ExecutorsOOMThreadPool
0 likes · 10 min read
Why You Should Avoid Executors and Build ThreadPoolExecutor Manually in Java
Efficient Ops
Efficient Ops
Mar 18, 2020 · Operations

Why Nginx OOMs Under Million-Connection Load and How to Fix It

During a million‑connection WebSocket stress test, four 32‑core, 128 GB Nginx servers repeatedly ran out of memory, prompting an investigation that revealed oversized proxy buffers as the root cause and showed that disabling buffering and tuning buffer sizes stabilizes memory usage.

BackendOOMhigh concurrency
0 likes · 11 min read
Why Nginx OOMs Under Million-Connection Load and How to Fix It
Youzan Coder
Youzan Coder
Feb 21, 2020 · Backend Development

Dubbo Service Discovery OOM Case Study and Memory Leak Analysis

A misconfigured Dubbo consumer created both Dubbo and REST invokers, causing thousands of failed REST invoker attempts that filled a synchronized List of ResteasyClient objects, exhausting the old generation heap and triggering OOM, which was fixed by replacing the List with a WeakHashMap‑based client map.

OOMRestProtocoljava
0 likes · 12 min read
Dubbo Service Discovery OOM Case Study and Memory Leak Analysis
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 23, 2019 · Big Data

Understanding and Resolving Spark OOM Issues: Memory Model, Causes, and Optimization Techniques

This article explains Spark's memory architecture, identifies common out‑of‑memory scenarios such as map‑stage and shuffle‑stage overloads, and provides practical solutions and performance‑tuning tips—including repartitioning, off‑heap storage, code optimizations, and key configuration parameters—to prevent and mitigate OOM errors in large‑scale data processing.

ConfigurationMemoryOOM
0 likes · 15 min read
Understanding and Resolving Spark OOM Issues: Memory Model, Causes, and Optimization Techniques