Tagged articles
4 articles
Page 1 of 1
Efficient Ops
Efficient Ops
Jul 10, 2023 · Backend Development

How a Hidden gcache Memory Leak Undermined 99.9% Service Availability

A high‑traffic Go service suffered intermittent availability drops below 99.9% due to timeouts, and after extensive profiling, tracing, and heap analysis the root cause was identified as a memory‑leak bug in the third‑party gcache LFU implementation, which was fixed by upgrading the library.

BackendProfilinggc
0 likes · 10 min read
How a Hidden gcache Memory Leak Undermined 99.9% Service Availability
Bilibili Tech
Bilibili Tech
Jun 2, 2023 · Backend Development

Investigation and Resolution of Service Availability Fluctuations in a High‑QPS Go Backend Service

An investigation of a 100k‑QPS Go monolith revealed that intermittent availability drops were caused by a memory‑leak in the third‑party gcache LFU implementation, which inflated GC work and produced long mark phases; upgrading gcache eliminated the leak and restored 0.999+ availability, highlighting the need for thorough observability and dependency monitoring.

Garbage CollectionGoPerformance debugging
0 likes · 10 min read
Investigation and Resolution of Service Availability Fluctuations in a High‑QPS Go Backend Service