Su San Talks Tech
Su San Talks Tech
Aug 30, 2024 · Backend Development

Prevent Data Loss in Java Thread Pools When Services Crash

This article explains Java thread pools, their advantages, internal mechanics, common pitfalls such as oversized queues, excessive threads, and data loss on crashes, and presents a persistence‑based solution using database‑stored tasks and scheduled retries to ensure no data is lost when services go down.

Backend DevelopmentConcurrencyData Persistence
0 likes · 8 min read
Prevent Data Loss in Java Thread Pools When Services Crash
Baidu Geek Talk
Baidu Geek Talk
Nov 21, 2022 · Mobile Development

How Baidu App Prevents OOM Crashes with Real‑Time Memory Monitoring and Prediction

This article details Baidu's multi‑step memory‑control solution for its iOS app, covering background challenges, real‑time memory monitoring, page‑level memory prediction, water‑level determination, frequency control, proactive degradation, and code examples that together reduce OOM incidents on low‑end devices.

OOM preventionapp performanceiOS
0 likes · 17 min read
How Baidu App Prevents OOM Crashes with Real‑Time Memory Monitoring and Prediction