Tagged articles
5 articles
Page 1 of 1
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
Beike Product & Technology
Beike Product & Technology
Jan 6, 2021 · Backend Development

Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead

This article analyzes the performance bottleneck caused by large Apollo configuration reads in a PHP application and presents multiple optimization strategies—including static variables, Yac/APCu caching, require‑file with opcache, and MessagePack serialization—to significantly lower CPU and memory consumption while maintaining configuration freshness.

ApolloMessagePackPHP
0 likes · 11 min read
Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead
Programmer DD
Programmer DD
Nov 13, 2018 · Backend Development

How to Detect and Prevent Java Memory Leaks: Real‑World Examples and Fixes

This tutorial explains what Java memory leaks are, why they occur, and how to identify them at runtime, covering common leak sources such as static fields, unclosed resources, faulty equals/hashCode implementations, inner classes, finalize methods, string interning, and ThreadLocal misuse, plus practical prevention techniques and profiling tools.

Garbage CollectionJavaProfiling
0 likes · 15 min read
How to Detect and Prevent Java Memory Leaks: Real‑World Examples and Fixes