Tag

STW Pause

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Nov 9, 2023 · Backend Development

Troubleshooting Golang GC Performance Issues Causing Request Timeout Spikes

The article details how a Go service’s default GOGC setting caused overly frequent garbage‑collection pauses that spiked request timeouts, and how adjusting GOGC dynamically with debug.SetGCPercent and setting memory limits reduced GC CPU usage, extended pause intervals, and eliminated timeout spikes.

Backend DevelopmentGOGCGo Memory Management
0 likes · 20 min read
Troubleshooting Golang GC Performance Issues Causing Request Timeout Spikes