Tagged articles
2 articles
Page 1 of 1
Radish, Keep Going!
Radish, Keep Going!
Aug 7, 2024 · Backend Development

Boost Go Performance: Mastering GC with go trace, GOGC & GOMEMLIMIT

This article demonstrates how to analyze and optimize Go's garbage collection using go trace, comparing single‑threaded and concurrent implementations, and shows how tuning GOGC and GOMEMLIMIT can dramatically improve runtime and memory usage, with detailed code samples and performance metrics.

GOGCGOMEMLIMITGarbage Collection
0 likes · 13 min read
Boost Go Performance: Mastering GC with go trace, GOGC & GOMEMLIMIT
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 DevelopmentGC optimizationGOGC
0 likes · 20 min read
Troubleshooting Golang GC Performance Issues Causing Request Timeout Spikes