Tagged articles
272 articles
Page 1 of 3
Black & White Path
Black & White Path
May 9, 2026 · Information Security

Ollama ‘Bleeding Llama’ Vulnerability Puts 300K Servers at Risk of Sensitive Data Exposure

A critical CVE‑2026‑7482 flaw in Ollama’s model quantization pipeline, dubbed “Bleeding Llama,” allows unauthenticated attackers to craft GGUF files that read beyond buffer limits, potentially leaking prompts, API keys and other confidential data from over 300,000 internet‑exposed servers, with mitigation requiring an upgrade to version 0.17.1 and stricter network controls.

AI securityBleeding LlamaCVE-2026-7482
0 likes · 5 min read
Ollama ‘Bleeding Llama’ Vulnerability Puts 300K Servers at Risk of Sensitive Data Exposure
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
WeiLi Technology Team
WeiLi Technology Team
Mar 31, 2026 · Backend Development

Why ThreadLocal Leaks Cause Full GC in Thread Pools and How to Fix It

An online service experienced frequent Full GC due to a ThreadLocal memory leak in a thread‑pool scenario; the article walks through GC log analysis, heap dump inspection, root‑cause discovery in ThreadFactory logic, and presents a robust fix using Spring’s TaskDecorator to ensure proper cleanup.

TaskDecoratorThreadLocalgc
0 likes · 14 min read
Why ThreadLocal Leaks Cause Full GC in Thread Pools and How to Fix It
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2026 · Operations

How to Diagnose and Fix Memory Leaks in a Containerized Image Thumbnail Service

This guide walks through a systematic, step‑by‑step process for identifying, analyzing, and resolving memory‑related incidents in a high‑traffic thumbnail generation service running in Kubernetes, covering everything from initial symptom checks with free and vmstat to deep dives using smem, pmap, smaps, perf, and post‑mortem verification.

memory leakperfsmem
0 likes · 30 min read
How to Diagnose and Fix Memory Leaks in a Containerized Image Thumbnail Service
IT Services Circle
IT Services Circle
Mar 1, 2026 · Interview Experience

Li Auto Java Campus Interview Guide: Salary Insights and Core Java Q&A

This article combines Li Auto's 2026 campus recruitment salary data—showing typical offers ranging from 25k to 32k monthly with 14‑16 month packages—and a comprehensive Java interview cheat‑sheet covering inheritance vs interfaces, Map implementations, String handling, ConcurrentHashMap internals, reference types, memory‑leak detection, design patterns, observer pattern, multithreading, Future execution, and deadlock prevention.

ConcurrentHashMapLi Autointerview
0 likes · 27 min read
Li Auto Java Campus Interview Guide: Salary Insights and Core Java Q&A
Deepin Linux
Deepin Linux
Feb 14, 2026 · Operations

Master Linux Memory Troubleshooting: Detect Leaks and High Usage Efficiently

This guide walks Linux operators through the fundamentals of memory management, explains key metrics, and provides step‑by‑step instructions for using tools like top, free, vmstat, pmap, valgrind, smem, smaps and slabtop to pinpoint and resolve memory leaks and excessive memory consumption in production systems.

Debugging ToolsPerformance MonitoringSystem Administration
0 likes · 45 min read
Master Linux Memory Troubleshooting: Detect Leaks and High Usage Efficiently
Code Wrench
Code Wrench
Feb 1, 2026 · Operations

Detect and Fix Goroutine Leaks in Go with Context & pprof

This guide explains how Goroutine leaks cause hidden memory and CPU issues in long‑running Go health‑check tools, demonstrates how to reproduce the problem, and shows step‑by‑step detection using pprof and context, plus a production‑ready zero‑leak probe template with best‑practice code.

Opsmemory leakpprof
0 likes · 12 min read
Detect and Fix Goroutine Leaks in Go with Context & pprof
Tech Musings
Tech Musings
Jan 2, 2026 · Information Security

Why MongoDB’s CVE‑2025‑14847 Lets Attackers Leak Secrets Like Heartbleed

The article explains the CVE‑2025‑14847 MongoDB vulnerability, detailing how crafted BSON with a falsified document length triggers memory over‑read, demonstrates a reproducible PoC, compares it to the SSL Heartbleed bug, and offers mitigation advice for affected deployments.

CVE-2025-14847HeartbleedMongoDB
0 likes · 8 min read
Why MongoDB’s CVE‑2025‑14847 Lets Attackers Leak Secrets Like Heartbleed
FunTester
FunTester
Dec 19, 2025 · Frontend Development

How to Detect and Fix Memory Leaks in React Applications

This guide explains why memory leaks occur in React, how to spot early warning signs, and provides step‑by‑step techniques—including Chrome DevTools, React DevTools, and proper cleanup of timers, event listeners, fetch requests, and refs—to prevent and resolve leaks for more stable applications.

Reactcleanupmemory leak
0 likes · 13 min read
How to Detect and Fix Memory Leaks in React Applications
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
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Nov 25, 2025 · Operations

How to Uncover Hidden Java Memory Leaks in Kubernetes Pods

This article explains why Java applications in cloud containers often encounter OOMKilled pods, details the hidden memory consumption from JNI, libc, and Transparent Huge Pages, and demonstrates step‑by‑step how to use Alibaba Cloud OS Console's memory panorama analysis to identify and mitigate the root causes.

JNIKubernetesPod OOM
0 likes · 11 min read
How to Uncover Hidden Java Memory Leaks in Kubernetes Pods
Linux Kernel Journey
Linux Kernel Journey
Nov 17, 2025 · Operations

Four Diagrams to Quickly Diagnose Linux Memory Leaks

This guide explains Linux's virtual‑physical memory model, shows how to inspect system and process memory via /proc files, demonstrates a 100 MiB allocation test, and provides a step‑by‑step workflow—including ps sorting and Valgrind usage—to locate and fix memory leaks.

Linuxdebuggingmalloc
0 likes · 16 min read
Four Diagrams to Quickly Diagnose Linux Memory Leaks
FunTester
FunTester
Nov 7, 2025 · Frontend Development

Prevent Memory Leaks and Master Event Handling in JavaScript

This article explains how forgetting to remove event listeners can cause memory leaks, demonstrates proper listener cleanup, addresses closure pitfalls in loops, introduces event delegation, and provides practical debounce, throttle, naming conventions, and debugging techniques for robust frontend development.

DebounceThrottleevent delegation
0 likes · 16 min read
Prevent Memory Leaks and Master Event Handling in JavaScript
Code Mala Tang
Code Mala Tang
Nov 5, 2025 · Backend Development

How to Detect and Fix Memory Leaks in Long-Running Node.js Apps

Memory leaks can silently cripple long-running Node.js servers, but by understanding V8’s memory management, recognizing common leak patterns, and using tools like manual monitoring, Chrome DevTools snapshots, clinic.js or memwatch-next, developers can detect, diagnose, and fix leaks to keep performance stable.

V8memory leak
0 likes · 8 min read
How to Detect and Fix Memory Leaks in Long-Running Node.js Apps
Tech Stroll Journey
Tech Stroll Journey
Oct 28, 2025 · Operations

Detect and Fix Linux Memory Leaks with memleak and vmstat

This guide explains how Linux memory leaks occur, why they harm system stability, and provides step‑by‑step commands—including top, ps, pmap, vmstat, and the memleak utility—to identify, monitor, and resolve leaking processes efficiently.

Linuxmemleakmemory leak
0 likes · 6 min read
Detect and Fix Linux Memory Leaks with memleak and vmstat
Deepin Linux
Deepin Linux
Oct 20, 2025 · Fundamentals

How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code

This article explains what memory leaks are in C++ on Linux, why they matter, how they occur, and provides practical guidance on detecting them with tools like Valgrind, AddressSanitizer, GDB, and mtrace, followed by concrete solutions such as proper new/delete usage, smart pointers, RAII, custom allocators, and memory pools.

AddressSanitizerC++Linux
0 likes · 39 min read
How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code
DeWu Technology
DeWu Technology
Oct 13, 2025 · Backend Development

TTL Agent Pitfalls: Memory Leaks & CPU Spikes in Java – Cases & Fixes

This article explains how the Transmittable ThreadLocal (TTL) Java agent works, why improper usage can cause context contamination, memory leaks, and CPU spikes, and provides real production cases, code examples, and practical recommendations to avoid these pitfalls.

Java AgentTTLThreadLocal
0 likes · 15 min read
TTL Agent Pitfalls: Memory Leaks & CPU Spikes in Java – Cases & Fixes
Liangxu Linux
Liangxu Linux
Sep 28, 2025 · Fundamentals

Why Memory Leaks Hurt Your Programs and How to Detect Them

This article explains what memory leaks are, distinguishes different leak types such as space leaks and fragmentation, shows how unreferenced allocations cause hidden waste, and introduces common detection tools like Valgrind, AddressSanitizer, and tcmalloc Heap Profiler.

C Programmingdebuggingfragmentation
0 likes · 7 min read
Why Memory Leaks Hurt Your Programs and How to Detect Them
Cognitive Technology Team
Cognitive Technology Team
Sep 22, 2025 · Backend Development

Why /tmp Can Crash Your Spring Boot App and How to Fix It

An e‑commerce Spring Boot service crashed when uploading large files because Linux’s /tmp is a memory‑based tmpfs that fills RAM, causing OOM kills; the article explains the underlying tmpfs behavior, common pitfalls, and a three‑step solution using /var/tmp with proper configuration and permissions.

Linux tmpfsSpring Bootfile upload
0 likes · 9 min read
Why /tmp Can Crash Your Spring Boot App and How to Fix It
Deepin Linux
Deepin Linux
Aug 30, 2025 · Fundamentals

Why Is Stack Memory Faster Than Heap? Uncover the Secrets of Memory Allocation

This article explains the fundamental differences between stack and heap memory allocation, covering their allocation mechanisms, performance characteristics, typical use cases such as stack overflow and memory leaks, and provides C and C++ code examples to illustrate each concept.

Heap MemoryRecursionStack Memory
0 likes · 60 min read
Why Is Stack Memory Faster Than Heap? Uncover the Secrets of Memory Allocation
macrozheng
macrozheng
Aug 8, 2025 · Backend Development

Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP

This guide covers evaluating engineer hourly wages, interview self‑introduction tips, local vs distributed cache choices, ThreadLocal usage, memory‑leak detection with MAT, deadlock troubleshooting, Spring Bean lifecycle, AOP implementation, and Redis‑based distributed locks, plus resources for Spring Boot projects.

ThreadLocalaopcaching
0 likes · 20 min read
Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP
Java Architect Essentials
Java Architect Essentials
Jul 22, 2025 · Backend Development

How Static Variables Can Turn Your App Into a Memory‑Leaking Monster

This article reveals how seemingly harmless static variables in Java can become hidden memory killers, illustrates real-world crashes caused by static caches and configuration, and provides three practical techniques—including weak references, lifecycle‑bound clearing, and leak‑detection tools—to prevent memory leaks in Android and backend applications.

AndroidBackendmemory leak
0 likes · 6 min read
How Static Variables Can Turn Your App Into a Memory‑Leaking Monster
Java Architect Essentials
Java Architect Essentials
Jul 8, 2025 · Backend Development

Diagnose Java Memory Leaks in Minutes with Spring Boot Actuator and Arthas

This article explains why traditional heap dump and stack trace analysis are cumbersome, and shows how combining Spring Boot Actuator metrics with the Arthas diagnostic tool provides real‑time monitoring, rapid object inspection, and precise leak root‑cause identification, dramatically speeding up Java OOM troubleshooting.

ActuatorArthasSpring Boot
0 likes · 14 min read
Diagnose Java Memory Leaks in Minutes with Spring Boot Actuator and Arthas
Code Ape Tech Column
Code Ape Tech Column
Jul 3, 2025 · Backend Development

How to Detect and Fix Memory Leaks in Spring Boot Applications

This guide explains the fundamentals of memory leaks in Java, outlines common causes in Spring Boot, and provides step‑by‑step techniques—including GC log analysis, JConsole, VisualVM, MAT, Actuator, custom endpoints, jstack, BTrace, and best‑practice recommendations—to identify, diagnose, and prevent memory leaks for stable long‑running services.

Heap DumpJVMPerformance Monitoring
0 likes · 18 min read
How to Detect and Fix Memory Leaks in Spring Boot Applications
JavaScript
JavaScript
Jun 16, 2025 · Frontend Development

5 Hidden JavaScript Pitfalls That Can Break Your Code

This article uncovers five subtle JavaScript pitfalls—including async/await errors, Promise.all fail‑fast behavior, array mutation during iteration, closure‑induced memory leaks, and shallow versus deep copying—providing clear examples and best‑practice solutions to write more robust, predictable code.

JavaScriptPromisearray iteration
0 likes · 10 min read
5 Hidden JavaScript Pitfalls That Can Break Your Code
Lobster Programming
Lobster Programming
Jun 3, 2025 · Backend Development

How ThreadLocal Can Cause Memory Leaks in Java Multithreading

This article explains how ThreadLocal creates per‑thread variable copies, demonstrates its usage with sample Java code, illustrates the internal storage structure, and reveals why improper handling can lead to memory leaks when thread‑local values persist in thread pools.

ThreadLocaljavamemory leak
0 likes · 3 min read
How ThreadLocal Can Cause Memory Leaks in Java Multithreading
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
Cognitive Technology Team
Cognitive Technology Team
May 4, 2025 · Backend Development

Understanding Java ThreadLocal Memory Leaks: Mechanisms, Risks, Diagnosis, and Defensive Practices

This article explains the inner workings of Java's ThreadLocal, analyzes how weak and strong references can cause memory leaks in thread pools, demonstrates typical leak scenarios with code examples, and provides diagnostic tools and defensive coding practices to prevent such leaks.

Garbage CollectionThreadLocalbest practices
0 likes · 9 min read
Understanding Java ThreadLocal Memory Leaks: Mechanisms, Risks, Diagnosis, and Defensive Practices
Cognitive Technology Team
Cognitive Technology Team
May 3, 2025 · Backend Development

Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices

ThreadLocal provides per‑thread variable storage to achieve thread isolation, improving concurrency performance, and is essential for safe data handling in Java, but improper use can cause memory leaks, data contamination, and other issues; this article explains its internal mechanism, common scenarios, pitfalls, and best‑practice guidelines with code examples.

ThreadLocalbest practicesconcurrency
0 likes · 19 min read
Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices
Java Backend Full-Stack
Java Backend Full-Stack
Apr 26, 2025 · Backend Development

Master ThreadLocal: Answer Interview Questions and Prevent OOM Leaks

This article explains ThreadLocal’s internal mechanism, why improper use can cause OutOfMemoryError in thread pools, demonstrates the issue with a Java example, and provides best‑practice guidance—especially calling remove()—to prevent memory leaks while preparing for interview questions.

OutOfMemoryErrorThreadLocalconcurrency
0 likes · 11 min read
Master ThreadLocal: Answer Interview Questions and Prevent OOM Leaks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 19, 2025 · Frontend Development

Debugging and Fixing Memory Leaks in Vue2 Applications

This article walks through reproducing a memory‑leak scenario in a Vue2‑based terminal application, analyzes common leak causes, demonstrates how adding dynamic keys and patching Vue's sameVnode function resolves the issue, and shows how to ship the fix with patch‑package for production deployments.

KEYVuedebugging
0 likes · 9 min read
Debugging and Fixing Memory Leaks in Vue2 Applications
JavaScript
JavaScript
Feb 8, 2025 · Frontend Development

Avoid JavaScript Closure Pitfalls: Memory Leaks, Shared Variables, and Side Effects

This article explains how JavaScript closures, while powerful for encapsulation and modularity, can cause memory leaks, unexpected variable sharing in loops, and side‑effects when external variables are modified, and provides practical solutions such as releasing references, using let, IIFEs, bind, and immutable patterns.

/loopJavaScriptclosures
0 likes · 6 min read
Avoid JavaScript Closure Pitfalls: Memory Leaks, Shared Variables, and Side Effects
IT Services Circle
IT Services Circle
Jan 29, 2025 · Backend Development

How to Handle Frequent Full GC and High CPU Usage in Java Backend Development

This article explains common interview questions on frequent Full GC and high CPU usage in Java backend development, detailing root causes, JVM parameter adjustments, memory leak prevention, and code optimization techniques, along with practical code examples and tool recommendations for effective performance tuning.

CPU optimizationFull GCJVM
0 likes · 8 min read
How to Handle Frequent Full GC and High CPU Usage in Java Backend Development
Radish, Keep Going!
Radish, Keep Going!
Dec 31, 2024 · Backend Development

How to Spot and Prevent Common Go Memory Leaks

This article examines typical Go memory‑leak scenarios—including unclosed files, forgotten HTTP response bodies, slice sharing, goroutine and channel misuse, improper finalizers, and outdated ticker handling—provides concrete code examples, and offers practical techniques such as using strings.Clone, buffered channels, and proper defer usage to avoid leaks.

GoroutineResource Managementmemory leak
0 likes · 9 min read
How to Spot and Prevent Common Go Memory Leaks
JavaScript
JavaScript
Dec 31, 2024 · Frontend Development

Detect and Fix Common JavaScript Memory Leaks in Front‑End Development

This guide explains what JavaScript memory leaks are, illustrates typical front‑end leak scenarios such as forgotten timers, detached DOM references, improper closures, global variables, open WebSockets, misuse of Map/Set, and console logs, and provides practical solutions to prevent and resolve each issue.

Garbage CollectionJavaScriptdebugging
0 likes · 7 min read
Detect and Fix Common JavaScript Memory Leaks in Front‑End Development
Sohu Tech Products
Sohu Tech Products
Dec 25, 2024 · Mobile Development

Why BuildContext Leaks Memory in Flutter and How to Prevent It

This article explains how BuildContext and various closure patterns in Flutter can cause memory leaks, demonstrates typical leak scenarios with code examples, and provides practical strategies such as disposing listeners, nullifying references, and using WeakReference or Finalizer to ensure proper garbage collection.

AnimationControllerBuildContextDART
0 likes · 10 min read
Why BuildContext Leaks Memory in Flutter and How to Prevent It
Open Source Tech Hub
Open Source Tech Hub
Dec 7, 2024 · Backend Development

Detecting and Preventing Memory Leaks in the Webman PHP Framework

This article explains what memory leaks are, why they matter for the long‑running Webman PHP framework, outlines the two conditions that cause leaks, demonstrates a faulty static‑array implementation with load‑testing results, provides corrected code, and summarizes best practices to avoid unbounded memory growth.

PHPWebmanmemory leak
0 likes · 5 min read
Detecting and Preventing Memory Leaks in the Webman PHP Framework
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
FunTester
FunTester
Sep 30, 2024 · Backend Development

Unlock Java Performance: Essential Profiling Techniques and Tools

This guide introduces Java performance analysis fundamentals, covering profiling tools, key metrics such as CPU, memory, thread behavior, and practical methods to detect and resolve common issues like memory leaks, GC pauses, high CPU usage, I/O bottlenecks, and inefficient collection usage.

CPU analysisGarbage CollectionThread Dump
0 likes · 13 min read
Unlock Java Performance: Essential Profiling Techniques and Tools
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.

JVMMCCNative Memory
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
Deepin Linux
Deepin Linux
Aug 26, 2024 · Fundamentals

Understanding and Preventing Memory Leaks in C++ Applications

The article explains what memory leaks are, common causes, and presents practical techniques such as avoiding heap allocations, using smart pointers, employing arena allocators, leveraging coroutines, applying RAII, and debugging with tools like gperftools to detect and resolve leaks in C++ programs.

ArenaC++RAII
0 likes · 12 min read
Understanding and Preventing Memory Leaks in C++ Applications
Programmer DD
Programmer DD
Aug 16, 2024 · Backend Development

How a Hidden Uint Overflow Triggered Massive Traffic Spikes and the Memory‑Leak Mystery I Solved

This article recounts a developer's journey from a fresh graduate to a senior backend engineer, detailing two real‑world incidents—a pseudo‑memory‑leak in a C++ service and a uint overflow that caused traffic bursts—showing the analysis steps, code fixes, and lessons learned for reliable backend development.

C++incident analysismemory leak
0 likes · 19 min read
How a Hidden Uint Overflow Triggered Massive Traffic Spikes and the Memory‑Leak Mystery I Solved
Liangxu Linux
Liangxu Linux
Aug 12, 2024 · Fundamentals

Understanding C Memory Leaks: Causes, Detection, and Prevention

This article explains why memory leaks occur only with heap allocations in C, describes how malloc and related functions allocate memory, outlines two common ways to obtain heap memory, identifies the three essential elements of a leak, debunks common freeing misconceptions, and provides practical inspection steps to prevent leaks.

Heapc++debugging
0 likes · 6 min read
Understanding C Memory Leaks: Causes, Detection, and Prevention
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 4, 2024 · Backend Development

Understanding Java Memory Leaks and How to Prevent Them

This article explains what memory leaks are in Java, outlines common causes such as unreleased resources, static collections, misuse of ThreadLocal, improper variable scope, inner‑class references and off‑heap memory, and provides practical solutions and best‑practice recommendations to avoid them.

JVMThreadLocalbest practices
0 likes · 9 min read
Understanding Java Memory Leaks and How to Prevent Them
Code Mala Tang
Code Mala Tang
Aug 2, 2024 · Frontend Development

Why Your setTimeout Can Leak Gigabytes: JavaScript GC Explained

This article examines how JavaScript's garbage collection works, why large objects allocated in setTimeout callbacks can cause memory leaks, and provides practical code examples and strategies to prevent such leaks in V8-powered environments.

V8memory leak
0 likes · 10 min read
Why Your setTimeout Can Leak Gigabytes: JavaScript GC Explained
vivo Internet Technology
vivo Internet Technology
Apr 24, 2024 · Big Data

Analysis and Resolution of a FileSystem‑Induced Memory Leak Causing OOM in Production

The article details how repeatedly calling FileSystem.get(uri, conf, user) created distinct UserGroupInformation objects, inflating the static FileSystem cache and causing a heap‑memory leak that triggered an Out‑Of‑Memory error, and explains that using the two‑argument get method or explicitly closing instances resolves the issue.

HadoopOutOfMemoryPerformance debugging
0 likes · 13 min read
Analysis and Resolution of a FileSystem‑Induced Memory Leak Causing OOM in Production
Tencent Cloud Developer
Tencent Cloud Developer
Apr 23, 2024 · Backend Development

Performance Optimization of the qs Library: A 5× Speedup Case Study

A Tencent engineer fixed a severe memory‑leak in the qs library’s encode function by processing 30 MB strings in 1024‑character chunks, reducing heap usage from 2.5 GB to 0.48 GB and cutting runtime from 7.9 s to 2.1 s, achieving a five‑fold speedup and memory reduction, and contributed the change as an open‑source pull request.

JavaScriptNode.jsbenchmark
0 likes · 10 min read
Performance Optimization of the qs Library: A 5× Speedup Case Study
Liangxu Linux
Liangxu Linux
Apr 18, 2024 · Fundamentals

Mastering Linux Memory Management: Structures, Allocation Algorithms, and Common Pitfalls

This article provides a comprehensive guide to Linux memory management, covering memory fundamentals, address spaces, MMU translation, segmentation and paging, the buddy and slab allocation algorithms, kernel and user memory pools, typical usage scenarios, common bugs, and practical tools for monitoring and debugging memory usage.

DMALinuxMemory Management
0 likes · 25 min read
Mastering Linux Memory Management: Structures, Allocation Algorithms, and Common Pitfalls
IT Services Circle
IT Services Circle
Apr 17, 2024 · Databases

Comprehensive Didi Interview Review: Redis Persistence, Data Types, Memory Issues, and System Concepts

This article summarizes a Didi second‑round interview covering Redis persistence mechanisms, data structures, memory overflow and leak concepts, thread safety, process vs thread differences, deadlock prevention, TCP/UDP distinctions, and a couple of hand‑written algorithm problems, providing detailed explanations and code examples.

Data Structuresdatabaseinterview
0 likes · 19 min read
Comprehensive Didi Interview Review: Redis Persistence, Data Types, Memory Issues, and System Concepts
vivo Internet Technology
vivo Internet Technology
Mar 19, 2024 · Backend Development

Java 8 Memory Management and Garbage Collection Analysis

The article offers a thorough overview of Java 8 memory management, detailing JVM memory regions, object eligibility, major garbage‑collection algorithms and generational models, comparing Serial, Parallel, CMS and G1 collectors, and presenting practical heap‑dump analysis techniques for diagnosing leaks and performance issues.

GC AlgorithmsHeap AnalysisJVM
0 likes · 29 min read
Java 8 Memory Management and Garbage Collection Analysis
Top Architect
Top Architect
Feb 20, 2024 · Backend Development

JVM Garbage Collection Tuning Experience: Reducing FullGC Frequency and Solving Memory Leaks

Over a month of systematic JVM tuning, the author reduced FullGC frequency from 40 times per day to once every ten days, halved YoungGC time, identified and fixed a memory leak caused by anonymous inner‑class listeners, and documented the step‑by‑step optimization process with configuration changes and performance results.

Garbage CollectionJVMjava
0 likes · 12 min read
JVM Garbage Collection Tuning Experience: Reducing FullGC Frequency and Solving Memory Leaks
Didi Tech
Didi Tech
Nov 21, 2023 · Databases

Investigation and Root Cause Analysis of a Redis Memory Leak in Production

An in‑depth, timeline‑driven investigation of a production Redis memory leak revealed that the custom 3.2.8 build’s getKeysInSlot function failed to free a temporary key‑array after traversing the radix‑tree, causing hundreds of megabytes of leaked SDS strings, which was fixed by adding a single free call and highlighted the need for functional code reviews and early leak detection.

LinuxSlot Migrationdebugging
0 likes · 10 min read
Investigation and Root Cause Analysis of a Redis Memory Leak in Production
Java Captain
Java Captain
Nov 11, 2023 · Backend Development

Analyzing and Reproducing OutOfMemoryError in MyBatis-based Java Services

This article examines the causes of Java OutOfMemoryError in a distributed backend service, analyzes MyBatis-related memory leaks, demonstrates a reproducible scenario with large SQL concatenations and multithreading, and offers practical mitigation strategies to prevent heap and metaspace overflow.

BackendMyBatisOutOfMemoryError
0 likes · 6 min read
Analyzing and Reproducing OutOfMemoryError in MyBatis-based Java Services
IT Services Circle
IT Services Circle
Nov 7, 2023 · Backend Development

Understanding ThreadLocal Memory Leaks and How to Prevent Them

This article explains the internal structure of ThreadLocal, identifies scenarios where ThreadLocal can cause memory leaks—especially in thread‑pool environments—analyzes the root causes, and provides practical techniques such as using remove() and expungeStaleEntry() to avoid these leaks.

Garbage CollectionThreadLocalconcurrency
0 likes · 11 min read
Understanding ThreadLocal Memory Leaks and How to Prevent Them
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.

JVMNative MemorySpring Boot
0 likes · 12 min read
Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools
FunTester
FunTester
Oct 23, 2023 · Backend Development

Understanding and Managing Memory Leaks in Java Applications

This article explains the concept of memory leaks in Java applications, why they matter, how to identify common leak patterns and symptoms, and provides best practices, tools, and code examples for preventing, detecting, and resolving memory leaks to improve performance and stability.

Garbage Collectionbest practicesjava
0 likes · 18 min read
Understanding and Managing Memory Leaks in Java 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
JD Retail Technology
JD Retail Technology
Sep 11, 2023 · Backend Development

Diagnosing and Resolving a Java Application Memory Leak During Load Testing

During a load test of a Java 1.6 application on a CentOS server, memory usage climbed from 20% to 100% after an hour of 300‑concurrent requests, prompting a detailed investigation that identified off‑heap leaks caused by GZIP compression in a JimDB client and led to fixes such as upgrading the JDK and avoiding unnecessary compression.

BackendGoogle PerftoolsJDK
0 likes · 7 min read
Diagnosing and Resolving a Java Application Memory Leak During Load Testing
Bilibili Tech
Bilibili Tech
Sep 8, 2023 · Backend Development

Investigation of Goroutine Leak in Go

The article details how a sudden surge in goroutine and heap usage was traced to repeatedly creating gRPC clients instead of reusing a singleton, leading to blocked goroutines and TCP connections, and explains using pprof, stack traces, and tools like goleak to detect and prevent such leaks.

GoGo ProgrammingGoroutine
0 likes · 13 min read
Investigation of Goroutine Leak in Go
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 25, 2023 · Frontend Development

Optimizing a Web Frontend Workflow Engine: Reducing Load Time, Input Lag, and Memory Usage

This article details a systematic investigation and optimization of a web‑based workflow engine, addressing slow initial rendering, input lag in Element UI components, and excessive memory consumption that caused browser crashes, and presents concrete solutions such as data pruning, Object.freeze, lazy loading, and event cleanup.

frontendlazy loadingmemory leak
0 likes · 9 min read
Optimizing a Web Frontend Workflow Engine: Reducing Load Time, Input Lag, and Memory Usage
Java Captain
Java Captain
Aug 18, 2023 · Backend Development

JVM GC Optimization: Reducing FullGC Frequency and Resolving Memory Leaks

This article documents a month‑long JVM garbage‑collection tuning effort that lowered FullGC from around 40 daily occurrences to one every ten days, halved YoungGC time, identified and fixed a memory‑leak caused by anonymous inner‑class listeners, and refined heap and metaspace settings to improve overall server throughput.

BackendGarbage CollectionJVM
0 likes · 10 min read
JVM GC Optimization: Reducing FullGC Frequency and Resolving Memory Leaks
FunTester
FunTester
Jul 28, 2023 · Fundamentals

Unveiling Go’s Channel: Deep Dive into Runtime, Memory Leaks, and Best Practices

This article explores Go's channel implementation—from its CSP‑inspired design and internal hchan structure to real‑world memory‑leak debugging, creation nuances, send/receive mechanics, and proper closing—providing developers with a comprehensive understanding of safe concurrent programming in Go.

ChannelGoGoroutine
0 likes · 31 min read
Unveiling Go’s Channel: Deep Dive into Runtime, Memory Leaks, and Best Practices
Alipay Experience Technology
Alipay Experience Technology
Jun 30, 2023 · Frontend Development

Fixing V8 OOM Crashes in Electron: Debugging, Memory Analysis, and Building a Custom Electron

This article walks through diagnosing V8FatalErrorCallback OOM crashes in an Electron‑based PC Taobao Live client, explores stack analysis, disables compilation cache, adjusts V8 heap limits, compiles a custom Electron without pointer compression, and uses Chrome DevTools Memory and Performance tools along with runtime monitoring to locate and fix the underlying memory leak.

Chrome DevToolsElectronNode.js
0 likes · 35 min read
Fixing V8 OOM Crashes in Electron: Debugging, Memory Analysis, and Building a Custom Electron
JD Tech
JD Tech
Jun 26, 2023 · Backend Development

Debugging and Resolving Netty Long‑Connection Memory Leak Issues

This article details a real‑world Netty long‑connection memory‑leak case, explains how to reproduce the problem, uses Netty's advanced leak detection to pinpoint the faulty ByteBuf usage, and presents three practical remediation strategies to permanently fix the leak.

Nettybackend-developmentdebugging
0 likes · 14 min read
Debugging and Resolving Netty Long‑Connection Memory Leak Issues
Baidu Geek Talk
Baidu Geek Talk
May 16, 2023 · Mobile Development

Common Memory Leak Issues in Android and iOS Development

The article outlines frequent memory‑leak pitfalls in Android (such as anonymous inner classes, static singletons, unregistered listeners, unclosed streams, and lingering animations) and iOS (including block retain cycles, strong delegate references, NSTimer retention, unmanaged CoreFoundation objects, and dispatch_after), and provides concrete code‑level remedies to prevent out‑of‑memory crashes.

AndroidMobile Developmentbest practices
0 likes · 13 min read
Common Memory Leak Issues in Android and iOS Development
Programmer DD
Programmer DD
Apr 25, 2023 · Artificial Intelligence

Why a Single QR Code Crashes WeChat: Inside the Memory Leak Bug

An unusual QR code triggers a memory‑leak in WeChat’s OCR engine, causing the app to crash on both mobile and desktop; the article explains the underlying null‑pointer exception, shows how the malformed “abnormal QR code” corrupts libqbar.so, and provides Python code to reproduce the bug using OpenCV’s open‑source QR engine.

CrashOpenCVPython
0 likes · 9 min read
Why a Single QR Code Crashes WeChat: Inside the Memory Leak Bug
JD Cloud Developers
JD Cloud Developers
Mar 22, 2023 · Frontend Development

How to Detect and Prevent JavaScript Memory Leaks in Frontend Apps

Understanding JavaScript memory management, this guide explains the fundamentals of memory allocation, usage, and garbage collection, outlines common leak scenarios such as global variables, timers, event listeners, and data structures, and provides practical techniques and tools for detecting, diagnosing, and fixing memory leaks in web applications.

JavaScriptfrontendmemory leak
0 likes · 15 min read
How to Detect and Prevent JavaScript Memory Leaks in Frontend Apps
IT Services Circle
IT Services Circle
Jan 13, 2023 · Frontend Development

Why console.log Can Cause Memory Leaks in Frontend JavaScript and How to Diagnose Them

This article explains how using console.log in frontend JavaScript can create memory leaks by retaining object references, demonstrates the issue with Chrome Performance and Memory tools, compares it with code without console.log, and offers alternative debugging techniques such as debugger, logpoints, and breakpoints.

JavaScriptconsole.logmemory leak
0 likes · 7 min read
Why console.log Can Cause Memory Leaks in Frontend JavaScript and How to Diagnose Them
DeWu Technology
DeWu Technology
Jan 4, 2023 · Backend Development

Diagnosing and Resolving Go Memory Leak with pprof and Prometheus

The article explains how a sudden Go service memory‑usage alert was traced with go tool pprof to a massive allocation in the quantile.newStream function, uncovered a Prometheus metric‑label explosion caused by the START_POINT label, and resolved the leak by disabling that label, while also reviewing typical Go memory‑leak patterns.

BackendGoPrometheus
0 likes · 15 min read
Diagnosing and Resolving Go Memory Leak with pprof and Prometheus
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Dec 26, 2022 · Backend Development

Analysis and Resolution of Full GC Issues in Inventory Center Online Business

The article describes analysis and resolution of full GC issues in the inventory center online business, detailing incident review, emergency measures like memory expansion and restart, root‑cause discovery of a memory leak caused by loading massive procurement out‑stock data and blocked threads, and mitigation through thread‑pool tuning, data migration, and process optimization to prevent future pauses.

gcjavamemory leak
0 likes · 17 min read
Analysis and Resolution of Full GC Issues in Inventory Center Online Business
Tencent Cloud Developer
Tencent Cloud Developer
Dec 22, 2022 · Databases

Dynamic‑Tracing Based Memory‑Leak (Growth) Analysis for MySQL‑Proxy in TDSQL

Using lightweight dynamic‑tracing tools that record allocator calls and page‑fault events, the authors diagnose a production MySQL‑proxy memory leak in TDSQL, generate focused flame‑graphs with custom memstacks and pgfaultstacks, and demonstrate a fast, source‑independent alternative to gdb or Valgrind.

LinuxMySQL-ProxyPerformance debugging
0 likes · 13 min read
Dynamic‑Tracing Based Memory‑Leak (Growth) Analysis for MySQL‑Proxy in TDSQL